# kingros99/dvld architecture

> Architecture diagram of the GitHub repository kingros99/dvld, 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/kingros99/dvld
- Repository: https://github.com/kingros99/dvld

## Overview

This is a Windows Forms driver and vehicle licensing management application. Staff sign in, then use the main window to manage people, users, applications, appointments, drivers, and licenses; domain logic validates and performs operations through SQL data-access modules. The graph preserves the major workflows visible in the tree, including local and international license applications, testing, renewals, replacements, and detained-license handling. Several feature links are dashed because their source was not sampled; the empty README provides no additional evidence.

Main entry points: [`UI/FrmMain.cs`](https://github.com/kingros99/dvld/blob/master/UI/FrmMain.cs) (Main menu), [`BL/BL/clsLicense.cs`](https://github.com/kingros99/dvld/blob/master/BL/BL/clsLicense.cs) (License lifecycle), [`DAL/Logger.cs`](https://github.com/kingros99/dvld/blob/master/DAL/Logger.cs) (Application logging), [`UI/People/Forms/FrmManagePeople.cs`](https://github.com/kingros99/dvld/blob/master/UI/People/Forms/FrmManagePeople.cs) (People management)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and people"]
  node_login["Sign in<br/>[frmLogin.cs]"]
  node_main["Main menu<br/>[FrmMain.cs]"]
  node_people["People management<br/>[FrmManagePeople.cs]"]
  node_person_info["Person details<br/>[FrmPersonInfo.cs]"]
  node_person_edit["Edit person"]
  node_users["User management<br/>[frmManageUsers.cs]"]
end

subgraph group_applications["License applications"]
  node_local_apps["Local applications"]
  node_local_app_edit["Create local application"]
  node_app_types["Application types"]
  node_appointments["Test appointments<br/>[frmScheduleTest.cs]"]
  node_appointment_edit["Appointment editing"]
  node_international_apps["International applications"]
  node_international_new["New international license"]
  node_renew["Renew license"]
  node_replace["Replace license"]
end

subgraph group_licensing["Drivers and licenses"]
  node_drivers["Driver list<br/>[frmListDrivers.cs]"]
  node_license_info["License details"]
  node_issue_license["Issue first license"]
  node_detained["Detained licenses"]
  node_release_detained["Release detained license"]
end

subgraph group_services["Domain and data"]
  node_person_domain["Person validation<br/>[clsPerson.cs]"]
  node_local_domain["Local application logic"]
  node_license_domain["License lifecycle<br/>[clsLicense.cs]"]
  node_appointment_domain["Appointment logic"]
  node_people_data["People data access<br/>[PeopleData.cs]"]
  node_local_data["Local application data"]
  node_license_data["License data<br/>[LicensesData.cs]"]
  node_international_data["International license data"]
  node_appointment_data["Appointment data"]
  node_logger["Application logging<br/>[Logger.cs]"]
end

node_staff(("Staff user"))
node_database[("SQL database")]

node_staff -->|"signs in"| node_login
node_login -->|"opens"| node_main
node_main -->|"opens"| node_people
node_main -->|"opens"| node_users
node_main -->|"opens"| node_local_apps
node_main -->|"opens"| node_drivers
node_main -->|"opens"| node_international_new
node_people -->|"opens"| node_person_info
node_people -.->|"opens"| node_person_edit
node_drivers -->|"opens"| node_person_info
node_international_apps -->|"opens"| node_international_new
node_local_apps -.->|"uses"| node_local_app_edit
node_local_apps -.->|"manages"| node_appointments
node_appointments -.->|"uses"| node_appointment_edit
node_person_info -.->|"loads person"| node_person_domain
node_local_app_edit -.->|"uses"| node_local_domain
node_international_new -.->|"creates license"| node_license_domain
node_renew -.->|"renews"| node_license_domain
node_replace -.->|"replaces"| node_license_domain
node_issue_license -.->|"issues"| node_license_domain
node_detained -.->|"starts release"| node_release_detained
node_license_info -.->|"displays"| node_license_domain
node_person_domain -->|"reads and writes"| node_people_data
node_person_domain -->|"logs errors"| node_logger
node_local_domain -->|"uses"| node_local_data
node_license_domain -->|"creates license"| node_license_data
node_people_data -.->|"queries"| node_database
node_local_data -.->|"queries"| node_database
node_license_data -.->|"queries"| node_database
node_international_data -.->|"queries"| node_database
node_appointment_data -.->|"queries"| node_database
node_international_data -->|"logs errors"| node_logger
node_license_data -->|"logs errors"| node_logger
node_local_data -->|"logs errors"| node_logger
node_appointment_data -->|"logs errors"| node_logger

click node_login "https://github.com/kingros99/dvld/blob/master/UI/Login/frmLogin.cs"
click node_main "https://github.com/kingros99/dvld/blob/master/UI/FrmMain.cs"
click node_people "https://github.com/kingros99/dvld/blob/master/UI/People/Forms/FrmManagePeople.cs"
click node_person_info "https://github.com/kingros99/dvld/blob/master/UI/People/Forms/FrmPersonInfo.cs"
click node_person_edit "https://github.com/kingros99/dvld/blob/master/UI/People/Forms/frmAddUpdatePerson.cs"
click node_users "https://github.com/kingros99/dvld/blob/master/UI/Users/Forms/frmManageUsers.cs"
click node_local_apps "https://github.com/kingros99/dvld/blob/master/UI/Applications/Local%20Driving%20License/frmManageLocalDrivingLicenseApplications.cs"
click node_local_app_edit "https://github.com/kingros99/dvld/blob/master/UI/Applications/Local%20Driving%20License/frmAddUpdateLocalDrivingLicesnseApplication.cs"
click node_app_types "https://github.com/kingros99/dvld/blob/master/UI/Applications/Applications%20Types/frmManageApplicationTypes.cs"
click node_appointments "https://github.com/kingros99/dvld/blob/master/UI/Appointments/frmScheduleTest.cs"
click node_appointment_edit "https://github.com/kingros99/dvld/blob/master/UI/Appointments/ctrlAddUpdateApppointment.cs"
click node_international_apps "https://github.com/kingros99/dvld/blob/master/UI/Applications/International%20License/frmManageInternationalLicesnseApplications.cs"
click node_international_new "https://github.com/kingros99/dvld/blob/master/UI/Applications/International%20License/frmNewInternationalLicenseApplication.cs"
click node_renew "https://github.com/kingros99/dvld/blob/master/UI/Applications/Renew%20License/frmRenewLocalDrivingLicenseApplication.cs"
click node_replace "https://github.com/kingros99/dvld/blob/master/UI/Applications/Replace%20or%20Renew%20old%20License/frmReplaceLostOrDamagedLicenseApplication.cs"
click node_drivers "https://github.com/kingros99/dvld/blob/master/UI/Drivers/frmListDrivers.cs"
click node_license_info "https://github.com/kingros99/dvld/blob/master/UI/Licenses/ctrlDriverLicenseInfo.cs"
click node_issue_license "https://github.com/kingros99/dvld/blob/master/UI/Licenses/frmIssueDriverLicenseFirstTime.cs"
click node_detained "https://github.com/kingros99/dvld/blob/master/UI/Licenses/frmManageDetainedLicenses.cs"
click node_release_detained "https://github.com/kingros99/dvld/blob/master/UI/Applications/Release%20Detained%20License/frmReleaseDetainedLicenseApplication.cs"
click node_person_domain "https://github.com/kingros99/dvld/blob/master/BL/BL/clsPerson.cs"
click node_local_domain "https://github.com/kingros99/dvld/blob/master/BL/BL/clsLocalDrivingLicenseApplications.cs"
click node_license_domain "https://github.com/kingros99/dvld/blob/master/BL/BL/clsLicense.cs"
click node_appointment_domain "https://github.com/kingros99/dvld/blob/master/BL/BL/clsTestAppointment.cs"
click node_people_data "https://github.com/kingros99/dvld/blob/master/DAL/PeopleData.cs"
click node_local_data "https://github.com/kingros99/dvld/blob/master/DAL/LocalDrivingLicenseApplicationsData.cs"
click node_license_data "https://github.com/kingros99/dvld/blob/master/DAL/LicensesData.cs"
click node_international_data "https://github.com/kingros99/dvld/blob/master/DAL/InternationalLicensesData.cs"
click node_appointment_data "https://github.com/kingros99/dvld/blob/master/DAL/TestAppointmentData.cs"
click node_logger "https://github.com/kingros99/dvld/blob/master/DAL/Logger.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_info,node_person_edit,node_users,node_staff toneBlue
class node_local_apps,node_local_app_edit,node_app_types,node_appointments,node_appointment_edit,node_international_apps,node_international_new,node_renew,node_replace,node_database toneAmber
class node_drivers,node_license_info,node_issue_license,node_detained,node_release_detained toneMint
class node_person_domain,node_local_domain,node_license_domain,node_appointment_domain,node_people_data,node_local_data,node_license_data,node_international_data,node_appointment_data,node_logger toneRose
```

## Components

### Access and people

- [Sign in](https://github.com/kingros99/dvld/blob/master/UI/Login/frmLogin.cs): `UI/Login/frmLogin.cs`
- [Main menu](https://github.com/kingros99/dvld/blob/master/UI/FrmMain.cs): `UI/FrmMain.cs`
- [People management](https://github.com/kingros99/dvld/blob/master/UI/People/Forms/FrmManagePeople.cs): `UI/People/Forms/FrmManagePeople.cs`
- [Person details](https://github.com/kingros99/dvld/blob/master/UI/People/Forms/FrmPersonInfo.cs): `UI/People/Forms/FrmPersonInfo.cs`
- [Edit person](https://github.com/kingros99/dvld/blob/master/UI/People/Forms/frmAddUpdatePerson.cs): `UI/People/Forms/frmAddUpdatePerson.cs`
- [User management](https://github.com/kingros99/dvld/blob/master/UI/Users/Forms/frmManageUsers.cs): `UI/Users/Forms/frmManageUsers.cs`

### License applications

- [Local applications](https://github.com/kingros99/dvld/blob/master/UI/Applications/Local%20Driving%20License/frmManageLocalDrivingLicenseApplications.cs): `UI/Applications/Local Driving License/frmManageLocalDrivingLicenseApplications.cs`
- [Create local application](https://github.com/kingros99/dvld/blob/master/UI/Applications/Local%20Driving%20License/frmAddUpdateLocalDrivingLicesnseApplication.cs): `UI/Applications/Local Driving License/frmAddUpdateLocalDrivingLicesnseApplication.cs`
- [Application types](https://github.com/kingros99/dvld/blob/master/UI/Applications/Applications%20Types/frmManageApplicationTypes.cs): `UI/Applications/Applications Types/frmManageApplicationTypes.cs`
- [Test appointments](https://github.com/kingros99/dvld/blob/master/UI/Appointments/frmScheduleTest.cs): `UI/Appointments/frmScheduleTest.cs`
- [Appointment editing](https://github.com/kingros99/dvld/blob/master/UI/Appointments/ctrlAddUpdateApppointment.cs): `UI/Appointments/ctrlAddUpdateApppointment.cs`
- [International applications](https://github.com/kingros99/dvld/blob/master/UI/Applications/International%20License/frmManageInternationalLicesnseApplications.cs): `UI/Applications/International License/frmManageInternationalLicesnseApplications.cs`
- [New international license](https://github.com/kingros99/dvld/blob/master/UI/Applications/International%20License/frmNewInternationalLicenseApplication.cs): `UI/Applications/International License/frmNewInternationalLicenseApplication.cs`
- [Renew license](https://github.com/kingros99/dvld/blob/master/UI/Applications/Renew%20License/frmRenewLocalDrivingLicenseApplication.cs): `UI/Applications/Renew License/frmRenewLocalDrivingLicenseApplication.cs`
- [Replace license](https://github.com/kingros99/dvld/blob/master/UI/Applications/Replace%20or%20Renew%20old%20License/frmReplaceLostOrDamagedLicenseApplication.cs): `UI/Applications/Replace or Renew old License/frmReplaceLostOrDamagedLicenseApplication.cs`

### Drivers and licenses

- [Driver list](https://github.com/kingros99/dvld/blob/master/UI/Drivers/frmListDrivers.cs): `UI/Drivers/frmListDrivers.cs`
- [License details](https://github.com/kingros99/dvld/blob/master/UI/Licenses/ctrlDriverLicenseInfo.cs): `UI/Licenses/ctrlDriverLicenseInfo.cs`
- [Issue first license](https://github.com/kingros99/dvld/blob/master/UI/Licenses/frmIssueDriverLicenseFirstTime.cs): `UI/Licenses/frmIssueDriverLicenseFirstTime.cs`
- [Detained licenses](https://github.com/kingros99/dvld/blob/master/UI/Licenses/frmManageDetainedLicenses.cs): `UI/Licenses/frmManageDetainedLicenses.cs`
- [Release detained license](https://github.com/kingros99/dvld/blob/master/UI/Applications/Release%20Detained%20License/frmReleaseDetainedLicenseApplication.cs): `UI/Applications/Release Detained License/frmReleaseDetainedLicenseApplication.cs`

### Domain and data

- [Person validation](https://github.com/kingros99/dvld/blob/master/BL/BL/clsPerson.cs): `BL/BL/clsPerson.cs`
- [Local application logic](https://github.com/kingros99/dvld/blob/master/BL/BL/clsLocalDrivingLicenseApplications.cs): `BL/BL/clsLocalDrivingLicenseApplications.cs`
- [License lifecycle](https://github.com/kingros99/dvld/blob/master/BL/BL/clsLicense.cs): `BL/BL/clsLicense.cs`
- [Appointment logic](https://github.com/kingros99/dvld/blob/master/BL/BL/clsTestAppointment.cs): `BL/BL/clsTestAppointment.cs`
- [People data access](https://github.com/kingros99/dvld/blob/master/DAL/PeopleData.cs): `DAL/PeopleData.cs`
- [Local application data](https://github.com/kingros99/dvld/blob/master/DAL/LocalDrivingLicenseApplicationsData.cs): `DAL/LocalDrivingLicenseApplicationsData.cs`
- [License data](https://github.com/kingros99/dvld/blob/master/DAL/LicensesData.cs): `DAL/LicensesData.cs`
- [International license data](https://github.com/kingros99/dvld/blob/master/DAL/InternationalLicensesData.cs): `DAL/InternationalLicensesData.cs`
- [Appointment data](https://github.com/kingros99/dvld/blob/master/DAL/TestAppointmentData.cs): `DAL/TestAppointmentData.cs`
- [Application logging](https://github.com/kingros99/dvld/blob/master/DAL/Logger.cs): `DAL/Logger.cs`

### Other components

- **Staff user**
- **SQL database**

## Connections

- Staff user → Sign in: signs in (evidence: `UI/Login/frmLogin.cs`)
- Sign in → Main menu: opens (evidence: `UI/Login/frmLogin.cs`)
- Main menu → People management: opens (evidence: `UI/FrmMain.cs`)
- Main menu → User management: opens (evidence: `UI/FrmMain.cs`)
- Main menu → Local applications: opens (evidence: `UI/FrmMain.cs`)
- Main menu → Driver list: opens (evidence: `UI/FrmMain.cs`)
- Main menu → New international license: opens (evidence: `UI/FrmMain.cs`)
- People management → Person details: opens (evidence: `UI/People/Forms/FrmManagePeople.cs`)
- People management → Edit person: opens
- Driver list → Person details: opens (evidence: `UI/Drivers/frmListDrivers.cs`)
- International applications → New international license: opens (evidence: `UI/Applications/International License/frmManageInternationalLicesnseApplications.cs`)
- Local applications → Create local application: uses
- Local applications → Test appointments: manages
- Test appointments → Appointment editing: uses
- Person details → Person validation: loads person
- Create local application → Local application logic: uses
- New international license → License lifecycle: creates license
- Renew license → License lifecycle: renews
- Replace license → License lifecycle: replaces
- Issue first license → License lifecycle: issues
- Detained licenses → Release detained license: starts release
- License details → License lifecycle: displays
- Person validation → People data access: reads and writes (evidence: `BL/BL/clsPerson.cs`)
- Person validation → Application logging: logs errors (evidence: `BL/BL/clsPerson.cs`)
- Local application logic → Local application data: uses (evidence: `BL/BL/clsLocalDrivingLicenseApplications.cs`)
- License lifecycle → License data: creates license (evidence: `BL/BL/clsLicense.cs`)
- People data access → SQL database: queries
- Local application data → SQL database: queries
- License data → SQL database: queries
- International license data → SQL database: queries
- Appointment data → SQL database: queries
- International license data → Application logging: logs errors (evidence: `DAL/InternationalLicensesData.cs`)
- License data → Application logging: logs errors (evidence: `DAL/LicensesData.cs`)
- Local application data → Application logging: logs errors (evidence: `DAL/LocalDrivingLicenseApplicationsData.cs`)
- Appointment data → Application logging: logs errors (evidence: `DAL/TestAppointmentData.cs`)
