# huslen21-dev/- architecture

> Architecture diagram of the GitHub repository huslen21-dev/-, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/huslen21-dev/-
- Repository: https://github.com/huslen21-dev/-

## Overview

This is a Windows Forms library-registration application. The user opens the form to view book records and perform book-management actions; the form uses SQL Server for queries and changes. The excerpt also shows genre lookup and deletion of selected books with related borrowed-book records. The available source is partial, so other controls and workflows are not mapped; edges reflect only the shown startup and database interactions.

Main entry points: [`SK23D003-Chinhuslen lab-15/SK23D003-Chinhuslen/SK23D003-Chinhuslen/Form1.cs`](https://github.com/huslen21-dev/-/blob/main/SK23D003-Chinhuslen%20lab-15/SK23D003-Chinhuslen/SK23D003-Chinhuslen/Form1.cs) (Library form), [`SK23D003-Chinhuslen lab-15/SK23D003-Chinhuslen/SK23D003-Chinhuslen/Program.cs`](https://github.com/huslen21-dev/-/blob/main/SK23D003-Chinhuslen%20lab-15/SK23D003-Chinhuslen/SK23D003-Chinhuslen/Program.cs) (Connection factory)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_startup["Application startup"]
  node_program["Application entry<br/>[Program.cs]"]
end

subgraph group_library["Library management"]
  node_form["Library form<br/>[Form1.cs]"]
end

subgraph group_storage["Database access"]
  node_connection["Connection factory<br/>[Program.cs]"]
  node_sqlserver[("Library database")]
end

node_user(("Library user"))

node_user -->|"uses"| node_form
node_program -->|"launches"| node_form
node_form -->|"requests connection"| node_connection
node_connection -->|"configures access"| node_sqlserver
node_form -->|"queries and updates"| node_sqlserver

click node_program "https://github.com/huslen21-dev/-/blob/main/SK23D003-Chinhuslen%20lab-15/SK23D003-Chinhuslen/SK23D003-Chinhuslen/Program.cs"
click node_form "https://github.com/huslen21-dev/-/blob/main/SK23D003-Chinhuslen%20lab-15/SK23D003-Chinhuslen/SK23D003-Chinhuslen/Form1.cs"
click node_connection "https://github.com/huslen21-dev/-/blob/main/SK23D003-Chinhuslen%20lab-15/SK23D003-Chinhuslen/SK23D003-Chinhuslen/Program.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_program,node_user toneBlue
class node_form toneAmber
class node_connection,node_sqlserver toneMint
```

## Components

### Application startup

- [Application entry](https://github.com/huslen21-dev/-/blob/main/SK23D003-Chinhuslen%20lab-15/SK23D003-Chinhuslen/SK23D003-Chinhuslen/Program.cs): `SK23D003-Chinhuslen lab-15/SK23D003-Chinhuslen/SK23D003-Chinhuslen/Program.cs`

### Library management

- [Library form](https://github.com/huslen21-dev/-/blob/main/SK23D003-Chinhuslen%20lab-15/SK23D003-Chinhuslen/SK23D003-Chinhuslen/Form1.cs): `SK23D003-Chinhuslen lab-15/SK23D003-Chinhuslen/SK23D003-Chinhuslen/Form1.cs`

### Database access

- [Connection factory](https://github.com/huslen21-dev/-/blob/main/SK23D003-Chinhuslen%20lab-15/SK23D003-Chinhuslen/SK23D003-Chinhuslen/Program.cs): `SK23D003-Chinhuslen lab-15/SK23D003-Chinhuslen/SK23D003-Chinhuslen/Program.cs`
- **Library database**

### Other components

- **Library user**

## Connections

- Library user → Library form: uses
- Application entry → Library form: launches (evidence: `SK23D003-Chinhuslen lab-15/SK23D003-Chinhuslen/SK23D003-Chinhuslen/Program.cs`)
- Library form → Connection factory: requests connection (evidence: `SK23D003-Chinhuslen lab-15/SK23D003-Chinhuslen/SK23D003-Chinhuslen/Form1.cs`)
- Connection factory → Library database: configures access (evidence: `SK23D003-Chinhuslen lab-15/SK23D003-Chinhuslen/SK23D003-Chinhuslen/Program.cs`)
- Library form → Library database: queries and updates (evidence: `SK23D003-Chinhuslen lab-15/SK23D003-Chinhuslen/SK23D003-Chinhuslen/Form1.cs`)
