A desktop clinic management system built with C# WinForms and SQL Server, developed as an Object-Oriented Programming II coursework project.
Note: The application's internal namespace and database are named
HealthCare_Plus/Healthcareplus, while the repository and solution are namedDentalCare. Both names refer to the same project.
DentalCare models the day-to-day operations of a small clinic: staff and admin accounts sign in through role-based logins, and each role gets a dashboard scoped to what they're allowed to do — admins manage staff and doctor records, both roles manage patients.
- Role-based authentication — separate login screens for Admin and Staff (
Forms/Auth) - Admin dashboard — manage staff accounts, doctor records, and patients (
Forms/Dashboard/Admin) - Staff dashboard — day-to-day staff view with doctor lookups (
Forms/Dashboard/Staff) - Data models for Users, Patients, Doctors, and Staff Members (
Models/) - SQL Server backend via ADO.NET (
System.Data.SqlClient), with a single connection helper (Utils/DBCon.cs) - Input validation helper (
Utils/InputValidator.cs)
| Layer | Technology |
|---|---|
| UI | Windows Forms (.NET Framework 4.8) |
| Language | C# |
| Database | Microsoft SQL Server (SQL Express by default) |
| Data access | ADO.NET (System.Data.SqlClient) |
DentalCare/
├── Forms/
│ ├── Auth/ # AdminLogin, StaffLogin
│ └── Dashboard/
│ ├── Admin/ # AdminDashboard, StaffForm, DoctorsForm, PatientsForm
│ └── Staff/ # StaffDashboard, DoctorForm
├── Models/ # User, AuthUser, Doctor, Patient, StaffMemeber
├── Utils/ # DBCon (connection helper), InputValidator
├── Resources/ # Icons used across forms
├── Create-Tables_SQL.sql
├── App.config
└── DMS_SLN.sln
- Windows with Visual Studio 2019+ (or any IDE supporting .NET Framework 4.8 WinForms projects)
- SQL Server / SQL Server Express with the SQL Server client tools
- Clone the repository and open
DentalCare/DMS_SLN.slnin Visual Studio. - Run
Create-Tables_SQL.sqlagainst your SQL Server instance to create theHealthcareplusdatabase and its tables. - Update the connection string in
App.configto point at your SQL Server instance:<add name="HealthCare_Plus.Properties.Settings.HealthcareplusConnectionString" connectionString="Data Source=YOUR_SERVER;Initial Catalog=HealthCarePlus;Integrated Security=True;TrustServerCertificate=True" providerName="System.Data.SqlClient" />
- Build and run the solution.
- Connection string currently defaults to
localhost\SQLEXPRESSand must be edited manually for other environments. - No automated tests are included.
No license file is currently included. Add one (e.g. MIT) if you intend this to be reused by others.
Tanvir Hasan — Computer Science undergraduate, American International University-Bangladesh (AIUB)