How nikolai789/vehicle-rental-management-system-project works
This is a Windows Forms vehicle-rental management application. Its main workflow is staff login, reservation creation for a customer and vehicle, invoice generation, and invoice review/payment; administrators also manage customers, vehicles, rates, reports, and dashboard views. The graph includes the customer, vehicle, invoice, and authentication layers plus the documented UI branches. Connections come from excerpts, source-index references, or explicit code; unsampled screens and repository behavior are not inferred beyond those references.
Main entry points: AdminForm.cs Admin workspace · NewLoginForm.cs Login form · ReservationRentWizardForm.cs Reservation wizard · CustomerService.cs Customer service
Components 33
Entry and Access
- Application startup
Program.cs - Login form
Form(Gab)/NewLoginForm.cs - Authentication
Services/AuthService.cs - User session
Session/UserSession.cs
Rental Operations
- Agent workspace
Form(Gab)/Agent/AgentForm.cs - Reservation wizard
Form(Gab)/Agent/ReservationRentWizardForm.cs - Customer details
Form(Gab)/CustomerDetailsForm.cs - Vehicle details
Form(Gab)/VehicleDetailsForm.cs - Invoice details
Form(Gab)/InvoiceDetailsForm.cs - Invoice list
Form(Gab)/Agent/User Controls Agent/InvoiceControl.cs
Administration
- Admin workspace
Form(Gab)/Admin/AdminForm.cs - Vehicle management
Form(Gab)/Admin/User Controls (Admin)/VehicleControl.cs - Customer management
Form(Gab)/Admin/User Controls (Admin)/CustomerControl.cs - Rate management
Form(Gab)/Admin/User Controls (Admin)/RatesControl.cs - Reports
Form(Gab)/Admin/User Controls (Admin)/ReportsControl.cs - Dashboard
Form(Gab)/Admin/User Controls (Admin)/DashboardControl.cs
Domain Services
- Customer service
Services/CustomerService.cs - Customer and license
Models/CustomerInfo/Customer.cs - Vehicle features
Services/StandardFeatureProvider.cs - Vehicle service
Services/VehicleService.cs - Vehicle model
Models/Vehicles.cs - Rate service
Services/RateService.cs - Rental rates
Models/Rates.cs - Invoice service
Services/InvoiceService.cs - Invoice model
Models/Invoice.cs - Invoice calculator
Models/InvoiceInfo/CalculateTotal/InvoiceCalculator.cs
Persistence
- User repository
Repositories/UserRepository.cs - Customer repository
Repositories/CustomerRepository.cs - Vehicle repository
Repositories/VehicleRepository.cs - Rate repository
Repositories/RateRepository.cs - Invoice repository
Repositories/InvoiceRepository.cs
Other components
- Staff user
- MySQL database
Connections 40
- Staff user → Application startup: starts app
Program.cs - Application startup → Login form: opens
Program.cs - Staff user → Login form: provides credentials
Form(Gab)/NewLoginForm.cs - Login form → Authentication: authenticates
Form(Gab)/NewLoginForm.cs - Authentication → User repository: looks up user
Services/AuthService.cs - Login form → User session: sets session
Form(Gab)/NewLoginForm.cs - Login form → Agent workspace: opens agent
Form(Gab)/NewLoginForm.cs - Login form → Admin workspace: opens admin
Form(Gab)/NewLoginForm.cs - Agent workspace → Reservation wizard: hosts workflow
- Reservation wizard → Customer service: uses customer service
Form(Gab)/Agent/ReservationRentWizardForm.cs - Customer service → Customer repository: persists customer
Services/CustomerService.cs - Customer repository → MySQL database: reads and writes
Repositories/CustomerRepository.cs - Reservation wizard → Vehicle service: uses vehicle service
Form(Gab)/Agent/ReservationRentWizardForm.cs - Vehicle service → Vehicle repository: delegates vehicle data
Services/VehicleService.cs - Vehicle repository → MySQL database: reads and writes
Repositories/VehicleRepository.cs - Reservation wizard → Rate service: gets rates
Form(Gab)/Agent/ReservationRentWizardForm.cs - Rate service → Rate repository: loads rates
Services/RateService.cs - Rate repository → Rental rates: maps rates
Repositories/RateRepository.cs - Reservation wizard → Invoice service: requests invoice
Form(Gab)/Agent/ReservationRentWizardForm.cs - Invoice service → Invoice repository: creates invoice
Services/InvoiceService.cs - Invoice repository → MySQL database: reads and writes
Repositories/InvoiceRepository.cs - Invoice service → Invoice model: builds invoice
Services/InvoiceService.cs - Vehicle details → Vehicle repository: loads and saves
Form(Gab)/VehicleDetailsForm.cs - Vehicle details → Vehicle features: gets feature options
Form(Gab)/VehicleDetailsForm.cs - Customer details → Customer service: uses customer service
Form(Gab)/CustomerDetailsForm.cs - Customer details → Customer repository: references repository
Form(Gab)/CustomerDetailsForm.cs - Customer service → Customer and license: validates customer
Services/CustomerService.cs - Vehicle repository → Vehicle model: maps vehicles
Repositories/VehicleRepository.cs - Invoice details → Invoice repository: marks paid
Form(Gab)/InvoiceDetailsForm.cs - Invoice details → Invoice calculator: calculates charges
Form(Gab)/InvoiceDetailsForm.cs - Invoice calculator → Invoice model: calculates invoice total
Models/InvoiceInfo/CalculateTotal/InvoiceCalculator.cs - Admin workspace → Dashboard: loads view
Form(Gab)/Admin/AdminForm.cs - Admin workspace → Vehicle management: loads view
Form(Gab)/Admin/AdminForm.cs - Admin workspace → Customer management: loads view
Form(Gab)/Admin/AdminForm.cs - Admin workspace → Rate management: loads view
Form(Gab)/Admin/AdminForm.cs - Admin workspace → Reports: loads view
Form(Gab)/Admin/AdminForm.cs - Admin workspace → Invoice list: loads view
Form(Gab)/Admin/AdminForm.cs - Customer management → Customer service: uses service
Form(Gab)/Admin/User Controls (Admin)/CustomerControl.cs - Customer management → Customer repository: references repository
Form(Gab)/Admin/User Controls (Admin)/CustomerControl.cs - Invoice list → Invoice repository: loads invoices
Form(Gab)/Agent/User Controls Agent/InvoiceControl.cs