How bakhtiyarovdj/mypassportuz works
MyPassportUZ is a Windows Forms passport and citizen-record management application with user authentication and role-aware account administration. The visible startup flow opens authentication; successful login stores the user ID and opens the main application. Profile and account-creation forms call the shared SQL data layer, which persists citizen and user records in the attached LocalDB database. The main form is a substantial but unsampled part of the application, so its internal workflows are not expanded here. Image handling and spreadsheet export are visible utility capabilities, but their callers are not established by the excerpts.
Main entry points: Base.cs SQL data access · Auth.cs Sign-in · Profile.cs User profile · NewUser.cs Add user
Components 12
Application entry
- Application startup
Program.cs - Main workspace
Main.cs
Authentication and accounts
- Sign-in
Auth.cs - User profile
Profile.cs - Add user
NewUser.cs - Session user ID
Classes/Storage.cs - User model
Classes/User.cs
Citizen records
- Citizen model
Classes/Citizen.cs
Persistence and utilities
- SQL data access
Classes/Base.cs - LocalDB database
Base.mdf - Image and Excel tools
Classes/Tools.cs
Other components
- Staff user
Connections 14
- Staff user → Application startup: starts application
Program.cs - Application startup → Sign-in: opens sign-in
Program.cs - Staff user → Sign-in: submits credentials
Auth.cs - Sign-in → SQL data access: checks credentials
Auth.cs - Sign-in → Session user ID: stores user ID
Auth.cs - Sign-in → Main workspace: opens workspace
Auth.cs - User profile → Session user ID: reads session ID
Profile.cs - User profile → SQL data access: loads and updates users
Profile.cs - User profile → Add user: opens user form
Profile.cs - Add user → SQL data access: adds user
NewUser.cs - Add user → User profile: refreshes user list
NewUser.cs - SQL data access → LocalDB database: reads and writes
Classes/Base.cs - SQL data access → Citizen model: maps citizen records
Classes/Base.cs - SQL data access → User model: maps user records
Classes/Base.cs