# alco222/driver_license_system architecture

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

- Interactive diagram: https://gitdiagram.com/alco222/driver_license_system
- Repository: https://github.com/alco222/driver_license_system

## Overview

DVLD is a Windows Forms system for administering driver-license applications, tests, people, users, and licenses. The principal workflow is staff login, selection of a licensing operation, processing the application and required tests, then issuing or managing a license. The README describes a presentation–business–data architecture backed by SQL Server. The tree documents testing, renewal, replacement, international licensing, and detention capabilities; some corresponding implementation files were not sampled, so their internal call paths are not asserted.

Main entry points: [`DriverLicense/FrmMainDVL.cs`](https://github.com/alco222/driver_license_system/blob/main/DriverLicense/FrmMainDVL.cs) (Main menu), [`DriverLicense/Application/Local Driving License/ManageApplicationDVL.cs`](https://github.com/alco222/driver_license_system/blob/main/DriverLicense/Application/Local%20Driving%20License/ManageApplicationDVL.cs) (Local applications), [`DriverLicense/Application/Release Detain LIcense/ManageDetainLicenses.cs`](https://github.com/alco222/driver_license_system/blob/main/DriverLicense/Application/Release%20Detain%20LIcense/ManageDetainLicenses.cs) (Detention management), [`DriverLicenseDataAccessLayer`](https://github.com/alco222/driver_license_system/tree/main/DriverLicenseDataAccessLayer) (Data access)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Desktop workflows"]
  node_login["Login<br/>[FrmLogin.cs]"]
  node_main["Main menu<br/>[FrmMainDVL.cs]"]
  node_people["People management<br/>[MangerPerson.cs]"]
  node_person_edit["Person editor"]
  node_users["User management<br/>[ManageUser.cs]"]
  node_local_apps["Local applications"]
  node_local_edit["Application editor"]
  node_tests["Test scheduling"]
  node_international["International applications"]
  node_renewal["License renewal"]
  node_replacement["License replacement"]
  node_detention["License detention"]
  node_detain_admin["Detention management"]
  node_release["License release"]
  node_license_history["License history"]
  node_license_details["License details"]
end

subgraph group_domain["Licensing rules"]
  node_bll["Business rules"]
  node_application_rules["Application rules<br/>[clsApplication.cs]"]
  node_local_rules["Local license rules"]
  node_license_rules["License rules<br/>[clsLicense.cs]"]
  node_person_rules["Person rules<br/>[clsPerson.cs]"]
  node_driver_rules["Driver records<br/>[clsDriver.cs]"]
  node_international_rules["International license rules"]
  node_detain_rules["Detention rules"]
  node_test_rules["Test rules<br/>[clsTest.cs]"]
end

subgraph group_data["Persistence"]
  node_dal["Data access"]
end

subgraph group_shared["Identity and utilities"]
  node_session["Session and credentials<br/>[LoggedInUser.cs]"]
  node_db_config["Connection settings"]
  node_event_log["Event logging<br/>[LogException.cs]"]
end

node_staff(("Staff user"))
node_sql[("SQL Server")]

node_staff -->|"signs in"| node_login
node_login -->|"stores credentials"| node_session
node_login -->|"opens"| node_main
node_main -->|"opens"| node_people
node_people -->|"opens editor"| node_person_edit
node_main -->|"opens"| node_users
node_main -->|"opens"| node_local_apps
node_local_apps -->|"opens editor"| node_local_edit
node_local_apps -->|"opens scheduling"| node_tests
node_main -->|"opens"| node_international
node_main -->|"opens"| node_renewal
node_main -->|"opens"| node_replacement
node_main -->|"opens"| node_detention
node_main -->|"opens"| node_detain_admin
node_detain_admin -->|"opens"| node_release
node_detain_admin -->|"opens"| node_detention
node_detain_admin -->|"opens"| node_license_history
node_detention -->|"opens"| node_license_details
node_local_apps -->|"opens"| node_license_details
node_local_apps -->|"opens"| node_license_history
node_bll -.->|"uses data access"| node_dal
node_dal -->|"reads and writes"| node_sql
node_dal -->|"uses settings"| node_db_config
node_dal -->|"logs exceptions"| node_event_log

click node_login "https://github.com/alco222/driver_license_system/blob/main/DriverLicense/Login/FrmLogin.cs"
click node_main "https://github.com/alco222/driver_license_system/blob/main/DriverLicense/FrmMainDVL.cs"
click node_people "https://github.com/alco222/driver_license_system/blob/main/DriverLicense/Person/MangerPerson.cs"
click node_person_edit "https://github.com/alco222/driver_license_system/blob/main/DriverLicense/Person/FrmAddEditPersonInfo.cs"
click node_users "https://github.com/alco222/driver_license_system/blob/main/DriverLicense/Users/ManageUser.cs"
click node_local_apps "https://github.com/alco222/driver_license_system/blob/main/DriverLicense/Application/Local%20Driving%20License/ManageApplicationDVL.cs"
click node_local_edit "https://github.com/alco222/driver_license_system/blob/main/DriverLicense/Application/Local%20Driving%20License/FrmAddEditApplicationDVL.cs"
click node_tests "https://github.com/alco222/driver_license_system/blob/main/DriverLicense/Application/Local%20Driving%20License/ManageApplicationDVL.cs"
click node_international "https://github.com/alco222/driver_license_system/blob/main/DriverLicense/Application/International%20Driving%20License/FrmListInternationalLicenseApplication.cs"
click node_renewal "https://github.com/alco222/driver_license_system/blob/main/DriverLicense/Application/Renew%20Local%20Drinving%20LIcense/FrmRenewLocalDrivingLIcense.cs"
click node_replacement "https://github.com/alco222/driver_license_system/blob/main/DriverLicense/Application/Replace%20Lost%20or%20Demage%20License/FrmReplacementForDamagedOrLostLicense.cs"
click node_detention "https://github.com/alco222/driver_license_system/blob/main/DriverLicense/Licenses/Detain%20License/FrmDetainLIcense.cs"
click node_detain_admin "https://github.com/alco222/driver_license_system/blob/main/DriverLicense/Application/Release%20Detain%20LIcense/ManageDetainLicenses.cs"
click node_release "https://github.com/alco222/driver_license_system/blob/main/DriverLicense/Application/Release%20Detain%20LIcense/FrmReleaseDetainLicenseApp.cs"
click node_license_history "https://github.com/alco222/driver_license_system/blob/main/DriverLicense/Licenses/FrmShowPersonLIcenseHistory.cs"
click node_license_details "https://github.com/alco222/driver_license_system/blob/main/DriverLicense/Licenses/LiscenseLocal/FrmShowLicenseDetails.cs"
click node_bll "https://github.com/alco222/driver_license_system/tree/main/DriverLicenseBusinessLayer"
click node_application_rules "https://github.com/alco222/driver_license_system/blob/main/DriverLicenseBusinessLayer/clsApplication.cs"
click node_local_rules "https://github.com/alco222/driver_license_system/blob/main/DriverLicenseBusinessLayer/clsLocalDrivingLicenseApplication.cs"
click node_license_rules "https://github.com/alco222/driver_license_system/blob/main/DriverLicenseBusinessLayer/clsLicense.cs"
click node_person_rules "https://github.com/alco222/driver_license_system/blob/main/DriverLicenseBusinessLayer/clsPerson.cs"
click node_driver_rules "https://github.com/alco222/driver_license_system/blob/main/DriverLicenseBusinessLayer/clsDriver.cs"
click node_international_rules "https://github.com/alco222/driver_license_system/blob/main/DriverLicenseBusinessLayer/clsInternationalLicense.cs"
click node_detain_rules "https://github.com/alco222/driver_license_system/blob/main/DriverLicenseBusinessLayer/clsDetainedLicense.cs"
click node_test_rules "https://github.com/alco222/driver_license_system/blob/main/DriverLicenseBusinessLayer/clsTest.cs"
click node_dal "https://github.com/alco222/driver_license_system/tree/main/DriverLicenseDataAccessLayer"
click node_session "https://github.com/alco222/driver_license_system/blob/main/DriverLicense/Global%20Classes/LoggedInUser.cs"
click node_db_config "https://github.com/alco222/driver_license_system/blob/main/DriverLicenseDataAccessLayer/DataAccessSettings.cs"
click node_event_log "https://github.com/alco222/driver_license_system/blob/main/EventLoggerLayer/LogException.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_login,node_main,node_people,node_person_edit,node_users,node_local_apps,node_local_edit,node_tests,node_international,node_renewal,node_replacement,node_detention,node_detain_admin,node_release,node_license_history,node_license_details,node_staff toneBlue
class node_bll,node_application_rules,node_local_rules,node_license_rules,node_person_rules,node_driver_rules,node_international_rules,node_detain_rules,node_test_rules,node_sql toneAmber
class node_dal toneMint
class node_session,node_db_config,node_event_log toneRose
```

## Components

### Desktop workflows

- [Login](https://github.com/alco222/driver_license_system/blob/main/DriverLicense/Login/FrmLogin.cs): `DriverLicense/Login/FrmLogin.cs`
- [Main menu](https://github.com/alco222/driver_license_system/blob/main/DriverLicense/FrmMainDVL.cs): `DriverLicense/FrmMainDVL.cs`
- [People management](https://github.com/alco222/driver_license_system/blob/main/DriverLicense/Person/MangerPerson.cs): `DriverLicense/Person/MangerPerson.cs`
- [Person editor](https://github.com/alco222/driver_license_system/blob/main/DriverLicense/Person/FrmAddEditPersonInfo.cs): `DriverLicense/Person/FrmAddEditPersonInfo.cs`
- [User management](https://github.com/alco222/driver_license_system/blob/main/DriverLicense/Users/ManageUser.cs): `DriverLicense/Users/ManageUser.cs`
- [Local applications](https://github.com/alco222/driver_license_system/blob/main/DriverLicense/Application/Local%20Driving%20License/ManageApplicationDVL.cs): `DriverLicense/Application/Local Driving License/ManageApplicationDVL.cs`
- [Application editor](https://github.com/alco222/driver_license_system/blob/main/DriverLicense/Application/Local%20Driving%20License/FrmAddEditApplicationDVL.cs): `DriverLicense/Application/Local Driving License/FrmAddEditApplicationDVL.cs`
- [Test scheduling](https://github.com/alco222/driver_license_system/blob/main/DriverLicense/Application/Local%20Driving%20License/ManageApplicationDVL.cs): `DriverLicense/Application/Local Driving License/ManageApplicationDVL.cs`
- [International applications](https://github.com/alco222/driver_license_system/blob/main/DriverLicense/Application/International%20Driving%20License/FrmListInternationalLicenseApplication.cs): `DriverLicense/Application/International Driving License/FrmListInternationalLicenseApplication.cs`
- [License renewal](https://github.com/alco222/driver_license_system/blob/main/DriverLicense/Application/Renew%20Local%20Drinving%20LIcense/FrmRenewLocalDrivingLIcense.cs): `DriverLicense/Application/Renew Local Drinving LIcense/FrmRenewLocalDrivingLIcense.cs`
- [License replacement](https://github.com/alco222/driver_license_system/blob/main/DriverLicense/Application/Replace%20Lost%20or%20Demage%20License/FrmReplacementForDamagedOrLostLicense.cs): `DriverLicense/Application/Replace Lost or Demage License/FrmReplacementForDamagedOrLostLicense.cs`
- [License detention](https://github.com/alco222/driver_license_system/blob/main/DriverLicense/Licenses/Detain%20License/FrmDetainLIcense.cs): `DriverLicense/Licenses/Detain License/FrmDetainLIcense.cs`
- [Detention management](https://github.com/alco222/driver_license_system/blob/main/DriverLicense/Application/Release%20Detain%20LIcense/ManageDetainLicenses.cs): `DriverLicense/Application/Release Detain LIcense/ManageDetainLicenses.cs`
- [License release](https://github.com/alco222/driver_license_system/blob/main/DriverLicense/Application/Release%20Detain%20LIcense/FrmReleaseDetainLicenseApp.cs): `DriverLicense/Application/Release Detain LIcense/FrmReleaseDetainLicenseApp.cs`
- [License history](https://github.com/alco222/driver_license_system/blob/main/DriverLicense/Licenses/FrmShowPersonLIcenseHistory.cs): `DriverLicense/Licenses/FrmShowPersonLIcenseHistory.cs`
- [License details](https://github.com/alco222/driver_license_system/blob/main/DriverLicense/Licenses/LiscenseLocal/FrmShowLicenseDetails.cs): `DriverLicense/Licenses/LiscenseLocal/FrmShowLicenseDetails.cs`

### Licensing rules

- [Business rules](https://github.com/alco222/driver_license_system/tree/main/DriverLicenseBusinessLayer): `DriverLicenseBusinessLayer`
- [Application rules](https://github.com/alco222/driver_license_system/blob/main/DriverLicenseBusinessLayer/clsApplication.cs): `DriverLicenseBusinessLayer/clsApplication.cs`
- [Local license rules](https://github.com/alco222/driver_license_system/blob/main/DriverLicenseBusinessLayer/clsLocalDrivingLicenseApplication.cs): `DriverLicenseBusinessLayer/clsLocalDrivingLicenseApplication.cs`
- [License rules](https://github.com/alco222/driver_license_system/blob/main/DriverLicenseBusinessLayer/clsLicense.cs): `DriverLicenseBusinessLayer/clsLicense.cs`
- [Person rules](https://github.com/alco222/driver_license_system/blob/main/DriverLicenseBusinessLayer/clsPerson.cs): `DriverLicenseBusinessLayer/clsPerson.cs`
- [Driver records](https://github.com/alco222/driver_license_system/blob/main/DriverLicenseBusinessLayer/clsDriver.cs): `DriverLicenseBusinessLayer/clsDriver.cs`
- [International license rules](https://github.com/alco222/driver_license_system/blob/main/DriverLicenseBusinessLayer/clsInternationalLicense.cs): `DriverLicenseBusinessLayer/clsInternationalLicense.cs`
- [Detention rules](https://github.com/alco222/driver_license_system/blob/main/DriverLicenseBusinessLayer/clsDetainedLicense.cs): `DriverLicenseBusinessLayer/clsDetainedLicense.cs`
- [Test rules](https://github.com/alco222/driver_license_system/blob/main/DriverLicenseBusinessLayer/clsTest.cs): `DriverLicenseBusinessLayer/clsTest.cs`

### Persistence

- [Data access](https://github.com/alco222/driver_license_system/tree/main/DriverLicenseDataAccessLayer): `DriverLicenseDataAccessLayer`

### Identity and utilities

- [Session and credentials](https://github.com/alco222/driver_license_system/blob/main/DriverLicense/Global%20Classes/LoggedInUser.cs): `DriverLicense/Global Classes/LoggedInUser.cs`
- [Connection settings](https://github.com/alco222/driver_license_system/blob/main/DriverLicenseDataAccessLayer/DataAccessSettings.cs): `DriverLicenseDataAccessLayer/DataAccessSettings.cs`
- [Event logging](https://github.com/alco222/driver_license_system/blob/main/EventLoggerLayer/LogException.cs): `EventLoggerLayer/LogException.cs`

### Other components

- **Staff user**
- **SQL Server**

## Connections

- Staff user → Login: signs in (evidence: `DriverLicense/Login/FrmLogin.cs`)
- Login → Session and credentials: stores credentials (evidence: `DriverLicense/Login/FrmLogin.cs`)
- Login → Main menu: opens (evidence: `DriverLicense/Login/FrmLogin.cs`)
- Main menu → People management: opens (evidence: `DriverLicense/FrmMainDVL.cs`)
- People management → Person editor: opens editor (evidence: `DriverLicense/Person/MangerPerson.cs`)
- Main menu → User management: opens (evidence: `DriverLicense/FrmMainDVL.cs`)
- Main menu → Local applications: opens (evidence: `DriverLicense/FrmMainDVL.cs`)
- Local applications → Application editor: opens editor (evidence: `DriverLicense/Application/Local Driving License/ManageApplicationDVL.cs`)
- Local applications → Test scheduling: opens scheduling (evidence: `DriverLicense/Application/Local Driving License/ManageApplicationDVL.cs`)
- Main menu → International applications: opens (evidence: `DriverLicense/FrmMainDVL.cs`)
- Main menu → License renewal: opens (evidence: `DriverLicense/FrmMainDVL.cs`)
- Main menu → License replacement: opens (evidence: `DriverLicense/FrmMainDVL.cs`)
- Main menu → License detention: opens (evidence: `DriverLicense/FrmMainDVL.cs`)
- Main menu → Detention management: opens (evidence: `DriverLicense/FrmMainDVL.cs`)
- Detention management → License release: opens (evidence: `DriverLicense/Application/Release Detain LIcense/ManageDetainLicenses.cs`)
- Detention management → License detention: opens (evidence: `DriverLicense/Application/Release Detain LIcense/ManageDetainLicenses.cs`)
- Detention management → License history: opens (evidence: `DriverLicense/Application/Release Detain LIcense/ManageDetainLicenses.cs`)
- License detention → License details: opens (evidence: `DriverLicense/Licenses/Detain License/FrmDetainLIcense.cs`)
- Local applications → License details: opens (evidence: `DriverLicense/Application/Local Driving License/ManageApplicationDVL.cs`)
- Local applications → License history: opens (evidence: `DriverLicense/Application/Local Driving License/ManageApplicationDVL.cs`)
- Business rules → Data access: uses data access
- Data access → SQL Server: reads and writes
- Data access → Connection settings: uses settings (evidence: `DriverLicenseDataAccessLayer/clsDataUsers.cs`)
- Data access → Event logging: logs exceptions (evidence: `DriverLicenseDataAccessLayer/clsDataUsers.cs`)
