# mohammedsalahcode/dvld-system architecture

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

- Interactive diagram: https://gitdiagram.com/mohammedsalahcode/dvld-system
- Repository: https://github.com/mohammedsalahcode/dvld-system

## Overview

DVLD is a WinForms desktop system for staff to manage people and users, process local and international license applications, schedule and record tests, and administer driver licenses—including renewal, replacement, and detention/release. The principal workflow starts at the desktop interface, moves through business rules and SQL-backed data access, and returns application, test, and license status to staff. The README describes a three-tier architecture and the product capabilities; sampled files confirm login, credential storage, person editing, and parts of license/application logic. Many workflow links rely on README documentation because their implementing forms were not sampled.

Main entry points: [`DVLD.UI/frmMain.cs`](https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.UI/frmMain.cs) (Main workspace), [`DVLD.UI/Login/frmLogin.cs`](https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.UI/Login/frmLogin.cs) (User login), [`DVLD.Business`](https://github.com/mohammedsalahcode/dvld-system/tree/main/DVLD.Business) (People and user rules), [`DVLD.UI/Applications/LocalDrivingLicense/frmListLocalDrivingLicesnseApplications.cs`](https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.UI/Applications/LocalDrivingLicense/frmListLocalDrivingLicesnseApplications.cs) (Local applications)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_presentation["Staff interface"]
  node_startup["Application startup<br/>[Program.cs]"]
  node_login["User login<br/>[frmLogin.cs]"]
  node_main["Main workspace<br/>[frmMain.cs]"]
end

subgraph group_identity["People and access"]
  node_people_ui["People management"]
  node_users_ui["User management"]
  node_drivers_ui["Driver directory<br/>[frmListDrivers.cs]"]
  node_credentials[("Credential preferences")]
end

subgraph group_applications["Application workflows"]
  node_local_apps_ui["Local applications"]
  node_app_types_ui["Application types"]
  node_international_ui["International applications"]
  node_renew_ui["License renewal"]
  node_replacement_ui["License replacement"]
end

subgraph group_licensing["Tests and licenses"]
  node_tests_ui["Tests and appointments"]
  node_first_issue_ui["First-time issuance"]
  node_history_ui["License history"]
  node_detain_ui["Detain and release"]
  node_detained_list_ui["Detained licenses"]
end

subgraph group_core["Business and persistence"]
  node_business_app["Application rules<br/>[clsApplication.cs]"]
  node_business_local["Local application rules"]
  node_business_license["License rules<br/>[clsLicense.cs]"]
  node_business_people["People and user rules<br/>[DVLD.Business]"]
  node_business_test["Test and appointment rules<br/>[DVLD.Business]"]
  node_business_international["International license rules"]
  node_business_detained["Detained license rules"]
  node_data_application["Application storage"]
  node_data_local["Local application storage"]
  node_data_people["People storage<br/>[clsPersonData.cs]"]
  node_data_license["License storage<br/>[clsLicenseData.cs]"]
  node_data_tests["Test appointment storage"]
  node_data_user["User storage<br/>[clsUserData.cs]"]
  node_data_detained["Detained license storage"]
end

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

node_staff -->|"starts"| node_startup
node_startup -->|"opens"| node_login
node_login -->|"authenticates"| node_business_people
node_login -->|"loads and saves"| node_credentials
node_credentials -.-> node_sql
node_login -->|"opens workspace"| node_main
node_staff -->|"uses"| node_main
node_main -->|"offers management"| node_people_ui
node_people_ui -->|"loads and saves person"| node_business_people
node_main -->|"offers management"| node_users_ui
node_users_ui -->|"loads and saves user"| node_business_people
node_main -->|"offers directory"| node_drivers_ui
node_main -->|"offers applications"| node_local_apps_ui
node_local_apps_ui -->|"manages applications"| node_business_local
node_main -->|"configures types"| node_app_types_ui
node_main -->|"offers applications"| node_international_ui
node_main -->|"offers renewal"| node_renew_ui
node_main -->|"offers replacement"| node_replacement_ui
node_local_apps_ui -->|"schedules tests"| node_tests_ui
node_tests_ui -.->|"records results"| node_business_test
node_tests_ui -->|"enables after passing"| node_first_issue_ui
node_first_issue_ui -.->|"issues license"| node_business_license
node_main -->|"offers history"| node_history_ui
node_main -->|"offers detention"| node_detain_ui
node_main -->|"offers release workflow"| node_detained_list_ui
node_business_local -.->|"uses application rules"| node_business_app
node_business_license -->|"creates applications"| node_business_app
node_business_app -.->|"persists applications"| node_data_application
node_business_local -.->|"reads and writes"| node_data_local
node_business_people -.->|"reads and writes"| node_data_people
node_business_license -->|"persists licenses"| node_data_license
node_business_test -.->|"reads and writes"| node_data_tests
node_business_international -.->|"persists licenses"| node_data_license
node_business_detained -.->|"reads and writes"| node_data_detained
node_data_application -->|"queries"| node_sql
node_data_local -->|"queries"| node_sql
node_data_people -->|"queries"| node_sql
node_data_license -->|"queries"| node_sql
node_data_tests -->|"queries"| node_sql
node_data_user -->|"queries"| node_sql
node_data_detained -->|"queries"| node_sql

click node_startup "https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.UI/Program.cs"
click node_login "https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.UI/Login/frmLogin.cs"
click node_main "https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.UI/frmMain.cs"
click node_people_ui "https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.UI/People/frmAddUpdatePerson.cs"
click node_users_ui "https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.UI/User/frmAddUpdateUser.cs"
click node_drivers_ui "https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.UI/Drivers/frmListDrivers.cs"
click node_local_apps_ui "https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.UI/Applications/LocalDrivingLicense/frmListLocalDrivingLicesnseApplications.cs"
click node_app_types_ui "https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.UI/Applications/ApplicationTypes/frmEditApplicationType.cs"
click node_international_ui "https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.UI/Applications/InternationalLicense/frmListInternationalLicesnseApplications.cs"
click node_renew_ui "https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.UI/Applications/RenewLocalLicense/frmRenewLocalDrivingLicenseApplication.cs"
click node_replacement_ui "https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.UI/Applications/ReplaceLostOrDamagedLicense/frmReplaceLostOrDamagedLicenseApplication.cs"
click node_tests_ui "https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.UI/Applications/LocalDrivingLicense/frmListLocalDrivingLicesnseApplications.cs"
click node_first_issue_ui "https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.UI/Licenses/LocalLicenses/frmIssueDriverLicenseFirstTime.cs"
click node_history_ui "https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.UI/Licenses/Controls/ctrlDriverLicenses.cs"
click node_detain_ui "https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.UI/Licenses/DetainLicense/frmDetainLicenseApplication.cs"
click node_detained_list_ui "https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.UI/Applications/RleaseDetainedLicense/frmListDetainedLicenses.cs"
click node_business_app "https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.Business/clsApplication.cs"
click node_business_local "https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.Business/clsLocalDrivingLicenseApplication.cs"
click node_business_license "https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.Business/clsLicense.cs"
click node_business_people "https://github.com/mohammedsalahcode/dvld-system/tree/main/DVLD.Business"
click node_business_test "https://github.com/mohammedsalahcode/dvld-system/tree/main/DVLD.Business"
click node_business_international "https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.Business/clsInternationalLicense.cs"
click node_business_detained "https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.Business/clsDetainedLicense.cs"
click node_data_application "https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.DataAccess/clsApplicationData.cs"
click node_data_local "https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.DataAccess/clsLocalDrivingLicenseApplicationData.cs"
click node_data_people "https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.DataAccess/clsPersonData.cs"
click node_data_license "https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.DataAccess/clsLicenseData.cs"
click node_data_tests "https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.DataAccess/clsTestAppointmentData.cs"
click node_data_user "https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.DataAccess/clsUserData.cs"
click node_data_detained "https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.DataAccess/clsDetainedLicenseData.cs"
click node_credentials "https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.Utilities/clsRegistryHandler.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_startup,node_login,node_main,node_staff toneBlue
class node_people_ui,node_users_ui,node_drivers_ui,node_credentials,node_sql toneAmber
class node_local_apps_ui,node_app_types_ui,node_international_ui,node_renew_ui,node_replacement_ui toneMint
class node_tests_ui,node_first_issue_ui,node_history_ui,node_detain_ui,node_detained_list_ui toneRose
class node_business_app,node_business_local,node_business_license,node_business_people,node_business_test,node_business_international,node_business_detained,node_data_application,node_data_local,node_data_people,node_data_license,node_data_tests,node_data_user,node_data_detained toneIndigo
```

## Components

### Staff interface

- [Application startup](https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.UI/Program.cs): `DVLD.UI/Program.cs`
- [User login](https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.UI/Login/frmLogin.cs): `DVLD.UI/Login/frmLogin.cs`
- [Main workspace](https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.UI/frmMain.cs): `DVLD.UI/frmMain.cs`

### People and access

- [People management](https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.UI/People/frmAddUpdatePerson.cs): `DVLD.UI/People/frmAddUpdatePerson.cs`
- [User management](https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.UI/User/frmAddUpdateUser.cs): `DVLD.UI/User/frmAddUpdateUser.cs`
- [Driver directory](https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.UI/Drivers/frmListDrivers.cs): `DVLD.UI/Drivers/frmListDrivers.cs`
- [Credential preferences](https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.Utilities/clsRegistryHandler.cs): `DVLD.Utilities/clsRegistryHandler.cs`

### Application workflows

- [Local applications](https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.UI/Applications/LocalDrivingLicense/frmListLocalDrivingLicesnseApplications.cs): `DVLD.UI/Applications/LocalDrivingLicense/frmListLocalDrivingLicesnseApplications.cs`
- [Application types](https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.UI/Applications/ApplicationTypes/frmEditApplicationType.cs): `DVLD.UI/Applications/ApplicationTypes/frmEditApplicationType.cs`
- [International applications](https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.UI/Applications/InternationalLicense/frmListInternationalLicesnseApplications.cs): `DVLD.UI/Applications/InternationalLicense/frmListInternationalLicesnseApplications.cs`
- [License renewal](https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.UI/Applications/RenewLocalLicense/frmRenewLocalDrivingLicenseApplication.cs): `DVLD.UI/Applications/RenewLocalLicense/frmRenewLocalDrivingLicenseApplication.cs`
- [License replacement](https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.UI/Applications/ReplaceLostOrDamagedLicense/frmReplaceLostOrDamagedLicenseApplication.cs): `DVLD.UI/Applications/ReplaceLostOrDamagedLicense/frmReplaceLostOrDamagedLicenseApplication.cs`

### Tests and licenses

- [Tests and appointments](https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.UI/Applications/LocalDrivingLicense/frmListLocalDrivingLicesnseApplications.cs): `DVLD.UI/Applications/LocalDrivingLicense/frmListLocalDrivingLicesnseApplications.cs`
- [First-time issuance](https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.UI/Licenses/LocalLicenses/frmIssueDriverLicenseFirstTime.cs): `DVLD.UI/Licenses/LocalLicenses/frmIssueDriverLicenseFirstTime.cs`
- [License history](https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.UI/Licenses/Controls/ctrlDriverLicenses.cs): `DVLD.UI/Licenses/Controls/ctrlDriverLicenses.cs`
- [Detain and release](https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.UI/Licenses/DetainLicense/frmDetainLicenseApplication.cs): `DVLD.UI/Licenses/DetainLicense/frmDetainLicenseApplication.cs`
- [Detained licenses](https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.UI/Applications/RleaseDetainedLicense/frmListDetainedLicenses.cs): `DVLD.UI/Applications/RleaseDetainedLicense/frmListDetainedLicenses.cs`

### Business and persistence

- [Application rules](https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.Business/clsApplication.cs): `DVLD.Business/clsApplication.cs`
- [Local application rules](https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.Business/clsLocalDrivingLicenseApplication.cs): `DVLD.Business/clsLocalDrivingLicenseApplication.cs`
- [License rules](https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.Business/clsLicense.cs): `DVLD.Business/clsLicense.cs`
- [People and user rules](https://github.com/mohammedsalahcode/dvld-system/tree/main/DVLD.Business): `DVLD.Business`
- [Test and appointment rules](https://github.com/mohammedsalahcode/dvld-system/tree/main/DVLD.Business): `DVLD.Business`
- [International license rules](https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.Business/clsInternationalLicense.cs): `DVLD.Business/clsInternationalLicense.cs`
- [Detained license rules](https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.Business/clsDetainedLicense.cs): `DVLD.Business/clsDetainedLicense.cs`
- [Application storage](https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.DataAccess/clsApplicationData.cs): `DVLD.DataAccess/clsApplicationData.cs`
- [Local application storage](https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.DataAccess/clsLocalDrivingLicenseApplicationData.cs): `DVLD.DataAccess/clsLocalDrivingLicenseApplicationData.cs`
- [People storage](https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.DataAccess/clsPersonData.cs): `DVLD.DataAccess/clsPersonData.cs`
- [License storage](https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.DataAccess/clsLicenseData.cs): `DVLD.DataAccess/clsLicenseData.cs`
- [Test appointment storage](https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.DataAccess/clsTestAppointmentData.cs): `DVLD.DataAccess/clsTestAppointmentData.cs`
- [User storage](https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.DataAccess/clsUserData.cs): `DVLD.DataAccess/clsUserData.cs`
- [Detained license storage](https://github.com/mohammedsalahcode/dvld-system/blob/main/DVLD.DataAccess/clsDetainedLicenseData.cs): `DVLD.DataAccess/clsDetainedLicenseData.cs`

### Other components

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

## Connections

- Staff user → Application startup: starts (evidence: `README.md`)
- Application startup → User login: opens (evidence: `DVLD.UI/Program.cs`)
- User login → People and user rules: authenticates (evidence: `DVLD.UI/Login/frmLogin.cs`)
- User login → Credential preferences: loads and saves (evidence: `DVLD.UI/Login/frmLogin.cs`)
- Credential preferences → SQL Server
- User login → Main workspace: opens workspace (evidence: `DVLD.UI/Login/frmLogin.cs`)
- Staff user → Main workspace: uses (evidence: `README.md`)
- Main workspace → People management: offers management (evidence: `README.md`)
- People management → People and user rules: loads and saves person (evidence: `DVLD.UI/People/frmAddUpdatePerson.cs`)
- Main workspace → User management: offers management (evidence: `README.md`)
- User management → People and user rules: loads and saves user (evidence: `DVLD.UI/User/frmAddUpdateUser.cs`)
- Main workspace → Driver directory: offers directory (evidence: `README.md`)
- Main workspace → Local applications: offers applications (evidence: `README.md`)
- Local applications → Local application rules: manages applications (evidence: `DVLD.UI/Applications/LocalDrivingLicense/frmListLocalDrivingLicesnseApplications.cs`)
- Main workspace → Application types: configures types (evidence: `README.md`)
- Main workspace → International applications: offers applications (evidence: `README.md`)
- Main workspace → License renewal: offers renewal (evidence: `README.md`)
- Main workspace → License replacement: offers replacement (evidence: `README.md`)
- Local applications → Tests and appointments: schedules tests (evidence: `DVLD.UI/Applications/LocalDrivingLicense/frmListLocalDrivingLicesnseApplications.cs`)
- Tests and appointments → Test and appointment rules: records results
- Tests and appointments → First-time issuance: enables after passing (evidence: `README.md`)
- First-time issuance → License rules: issues license
- Main workspace → License history: offers history (evidence: `README.md`)
- Main workspace → Detain and release: offers detention (evidence: `README.md`)
- Main workspace → Detained licenses: offers release workflow (evidence: `README.md`)
- Local application rules → Application rules: uses application rules
- License rules → Application rules: creates applications (evidence: `DVLD.Business/clsLicense.cs`)
- Application rules → Application storage: persists applications
- Local application rules → Local application storage: reads and writes
- People and user rules → People storage: reads and writes
- License rules → License storage: persists licenses (evidence: `DVLD.Business/clsLicense.cs`)
- Test and appointment rules → Test appointment storage: reads and writes
- International license rules → License storage: persists licenses
- Detained license rules → Detained license storage: reads and writes
- Application storage → SQL Server: queries (evidence: `README.md`)
- Local application storage → SQL Server: queries (evidence: `DVLD.DataAccess/clsLocalDrivingLicenseApplicationData.cs`)
- People storage → SQL Server: queries (evidence: `README.md`)
- License storage → SQL Server: queries (evidence: `README.md`)
- Test appointment storage → SQL Server: queries (evidence: `README.md`)
- User storage → SQL Server: queries (evidence: `README.md`)
- Detained license storage → SQL Server: queries (evidence: `README.md`)
