How tahir979/e-voting-system works
Project type and purpose
• This is a Windows‐desktop, single‐exe, full‐stack election management application built on .NET Framework 4.7.2 using WinForms and MetroModernUI for the UI.
• It integrates with Microsoft Access (.accdb) for persistence, uses Microsoft.Office.Interop.Excel to import voter lists and votes, and a built‐in SMTP email sender to dispatch verification codes to @hacettepe.edu.tr addresses.
File structure
• Top‐level artifacts:
• e-voting.sln / e-voting.csproj – Solution and project files
• Program.cs – Application entry point
• *.Designer.cs & *.cs – WinForms UI classes (main form, loading screens, changing address, etc.)
• bin/Debug/*.accdb – Access databases (kod.accdb, tile3.accdb, veri.accdb)
• packages/ – Third‐party libraries (MetroModernUI, Excel interop)
• Resources & Properties – Localization and settings
• No separate service or data projects; everything lives inside one WinForms assembly following a layered (but in‐process) architecture.
Key insights from README
• Workflow:
1. Load Excel with voter emails → validate addresses → persist unique emails + generated codes in Access DB
2. Send codes via SMTP to validated addresses
3. Load Google Form results (Excel) → map codes to votes → persist unique votes
4. Tally votes by incrementing counters in DB
• Secure constraints: only one code per email, one vote per code; supports single/multi‐selection ballots.
• Services in another (e.g., green)
• Data stores in a third (e.g., orange)