# meku2020-ops/finalscodecarrental architecture

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

- Interactive diagram: https://gitdiagram.com/meku2020-ops/finalscodecarrental
- Repository: https://github.com/meku2020-ops/finalscodecarrental

## Overview

FinalsCode is a Windows desktop car-rental management application backed by SQL Server. The user opens the fleet preview, enters the dashboard, and can view fleet and rental information, book a car, add vehicles, and verify the database connection. The dashboard delegates rental operations and data access to CarRentalService, which queries and updates Cars and Rentals. The excerpts show these main calls, but do not expose every dashboard handler or service method; the graph therefore keeps those responsibilities at the module level.

Main entry points: [`FinalsCode/Form1.cs`](https://github.com/meku2020-ops/finalscodecarrental/blob/master/FinalsCode/Form1.cs) (Fleet preview), [`FinalsCode/CarRentalService.cs`](https://github.com/meku2020-ops/finalscodecarrental/blob/master/FinalsCode/CarRentalService.cs) (Rental service), [`FinalsCode/Program.cs`](https://github.com/meku2020-ops/finalscodecarrental/blob/master/FinalsCode/Program.cs) (Application entry), [`FinalsCode/DashboardForm.cs`](https://github.com/meku2020-ops/finalscodecarrental/blob/master/FinalsCode/DashboardForm.cs) (Rental dashboard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Desktop application"]
  node_entry["Application entry<br/>[Program.cs]"]
  node_landing["Fleet preview<br/>[Form1.cs]"]
end

subgraph group_operations["Rental operations"]
  node_dashboard["Rental dashboard<br/>[DashboardForm.cs]"]
end

subgraph group_data["Persistence"]
  node_service["Rental service"]
  node_sqlserver[("SQL Server database")]
end

node_user(("User"))

node_user -->|"starts application"| node_entry
node_entry -->|"runs form"| node_landing
node_user -->|"uses preview"| node_landing
node_landing -->|"loads fleet and stats"| node_service
node_landing -->|"opens dashboard"| node_dashboard
node_dashboard -->|"runs rental operations"| node_service
node_service -->|"queries and updates"| node_sqlserver

click node_entry "https://github.com/meku2020-ops/finalscodecarrental/blob/master/FinalsCode/Program.cs"
click node_landing "https://github.com/meku2020-ops/finalscodecarrental/blob/master/FinalsCode/Form1.cs"
click node_dashboard "https://github.com/meku2020-ops/finalscodecarrental/blob/master/FinalsCode/DashboardForm.cs"
click node_service "https://github.com/meku2020-ops/finalscodecarrental/blob/master/FinalsCode/CarRentalService.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_entry,node_landing,node_user toneBlue
class node_dashboard toneAmber
class node_service,node_sqlserver toneMint
```

## Components

### Desktop application

- [Application entry](https://github.com/meku2020-ops/finalscodecarrental/blob/master/FinalsCode/Program.cs): `FinalsCode/Program.cs`
- [Fleet preview](https://github.com/meku2020-ops/finalscodecarrental/blob/master/FinalsCode/Form1.cs): `FinalsCode/Form1.cs`

### Rental operations

- [Rental dashboard](https://github.com/meku2020-ops/finalscodecarrental/blob/master/FinalsCode/DashboardForm.cs): `FinalsCode/DashboardForm.cs`

### Persistence

- [Rental service](https://github.com/meku2020-ops/finalscodecarrental/blob/master/FinalsCode/CarRentalService.cs): `FinalsCode/CarRentalService.cs`
- **SQL Server database**

### Other components

- **User**

## Connections

- User → Application entry: starts application (evidence: `FinalsCode/Program.cs`)
- Application entry → Fleet preview: runs form (evidence: `FinalsCode/Program.cs`)
- User → Fleet preview: uses preview (evidence: `FinalsCode/Form1.cs`)
- Fleet preview → Rental service: loads fleet and stats (evidence: `FinalsCode/Form1.cs`)
- Fleet preview → Rental dashboard: opens dashboard (evidence: `FinalsCode/Form1.cs`)
- Rental dashboard → Rental service: runs rental operations (evidence: `FinalsCode/DashboardForm.cs`)
- Rental service → SQL Server database: queries and updates (evidence: `FinalsCode/CarRentalService.cs`)
