How samadkhan0/bloodbanksystem works
BloodLink is a WinForms blood-bank management application. Staff sign in, then use dashboard pages to manage donors, blood inventory and patient requests; services validate and apply domain rules before repositories persist or query SQL Server. The dashboard also exposes reporting, staff administration and settings, while a timer handles expiry checks. The README documents charts, role-based access and persistent themes. Some page and settings relationships are grounded in the SOURCE INDEX or README because their implementation details were not excerpted.
Main entry points: DashboardShell.cs Dashboard shell · BloodUnitService.cs Inventory rules · PatientRequestService.cs Request rules · AdminDashboardPage.cs Admin dashboard
Components 26
Application flow
- Application startup
BloodLink/Program.cs - Sign-in
BloodLink/Forms/LoginForm.cs - Dashboard shell
BloodLink/Forms/DashboardShell.cs - Theme and drawing helpers
BloodLink/Helpers/Apptheme.cs
Blood bank operations
- Donor management
BloodLink/Pages/DonorPage.cs - Donor editor
BloodLink/Forms/DonorForm.cs - Blood inventory
BloodLink/Pages/BloodUnitPage.cs - Blood unit editor
BloodLink/Forms/BloodUnitForm.cs - Patient requests
BloodLink/Pages/PatientsPage.cs - Request editor
BloodLink/Forms/PatientForm.cs - Staff administration
BloodLink/Pages/StaffPage.cs - Staff editor
BloodLink/Forms/UserForm.cs
Dashboard and reporting
- Admin dashboard
BloodLink/Pages/AdminDashboardPage.cs - Operational reports
BloodLink/Pages/ReportsPage.cs - Application settings
BloodLink/Pages/SettingPage.cs
Business and persistence
- Authentication logic
BloodLink/Services/AuthService.cs - Donor rules
BloodLink/Services/DonorService.cs - Inventory rules
BloodLink/Services/BloodUnitService.cs - Request rules
BloodLink/Services/PatientRequestService.cs - User repository
BloodLink.Core/Database/UserRepository.cs - Donor repository
BloodLink.Core/Database/DonorRepository.cs - Blood unit repository
BloodLink.Core/Database/BloodUnitRepository.cs - Request repository
BloodLink.Core/Database/PatientRequestRepository.cs - Settings repository
BloodLink.Core/Database/AppSettingRepository.cs - SQL Server database
Other components
- Bank staff
Connections 42
- Bank staff → Application startup: launches
BloodLink/Program.cs - Application startup → Sign-in: opens
BloodLink/Program.cs - Bank staff → Sign-in: signs in
README.md - Sign-in → Authentication logic: authenticates with
BloodLink/Forms/LoginForm.cs - Sign-in → Dashboard shell: opens on success
BloodLink/Forms/LoginForm.cs - Dashboard shell → Admin dashboard: routes to
BloodLink/Forms/DashboardShell.cs - Dashboard shell → Donor management: routes to
BloodLink/Forms/DashboardShell.cs - Dashboard shell → Blood inventory: routes to
BloodLink/Forms/DashboardShell.cs - Dashboard shell → Patient requests: routes to
BloodLink/Forms/DashboardShell.cs - Dashboard shell → Staff administration: routes to
BloodLink/Forms/DashboardShell.cs - Dashboard shell → Operational reports: routes to
BloodLink/Forms/DashboardShell.cs - Dashboard shell → Application settings: routes to
BloodLink/Forms/DashboardShell.cs - Dashboard shell → Inventory rules: checks expiry
BloodLink/Forms/DashboardShell.cs - Donor management → Donor editor: opens
BloodLink/Pages/DonorPage.cs - Donor management → Donor rules: manages donors through
BloodLink/Pages/DonorPage.cs - Donor editor → Donor rules: saves through
BloodLink/Forms/DonorForm.cs - Blood inventory → Blood unit editor: opens
BloodLink/Pages/BloodUnitPage.cs - Blood inventory → Inventory rules: manages stock through
BloodLink/Pages/BloodUnitPage.cs - Blood unit editor → Inventory rules: saves through
BloodLink/Forms/BloodUnitForm.cs - Patient requests → Request editor: opens
BloodLink/Pages/PatientsPage.cs - Patient requests → Request rules: manages requests through
BloodLink/Pages/PatientsPage.cs - Request editor → Request rules: saves through
BloodLink/Forms/PatientForm.cs - Staff administration → Staff editor: opens
BloodLink/Pages/StaffPage.cs - Staff administration → Authentication logic: manages accounts through
BloodLink/Pages/StaffPage.cs - Staff editor → Authentication logic: saves through
BloodLink/Forms/UserForm.cs - Admin dashboard → Donor rules: loads donor metrics
BloodLink/Pages/AdminDashboardPage.cs - Admin dashboard → Inventory rules: loads inventory metrics
BloodLink/Pages/AdminDashboardPage.cs - Admin dashboard → Request rules: loads request metrics
BloodLink/Pages/AdminDashboardPage.cs - Operational reports → Inventory rules: queries stock and donations
BloodLink/Pages/ReportsPage.cs - Operational reports → Request rules: queries request status
BloodLink/Pages/ReportsPage.cs - Application settings → Settings repository: reads and writes
BloodLink/Pages/SettingPage.cs - Dashboard shell → Settings repository: loads preferences
BloodLink/Forms/DashboardShell.cs - Authentication logic → User repository: calls
BloodLink/Services/AuthService.cs - Donor rules → Donor repository: calls
BloodLink/Services/DonorService.cs - Inventory rules → Blood unit repository: calls
BloodLink/Services/BloodUnitService.cs - Request rules → Request repository: calls
BloodLink/Services/PatientRequestService.cs - User repository → SQL Server database: queries and writes
- Donor repository → SQL Server database: queries and writes
- Blood unit repository → SQL Server database: queries and writes
BloodLink.Core/Database/BloodUnitRepository.cs - Request repository → SQL Server database: queries and writes
- Settings repository → SQL Server database: reads and writes
- Dashboard shell → Theme and drawing helpers: uses theme helpers