How i2van/hourglass works
Main Components
a. Core Application Layer:
• Main Timer Engine (Hourglass/Timing/)
• Parsing System (Hourglass/Parsing/)
• Manager Components (Hourglass/Managers/)
• Windows UI Components (Hourglass/Windows/)
b. External Integrations:
• Windows Native Integration
• Audio System
• Virtual Desktop Integration
• Task Dialog System
┌─ User Interface Layer ─────────────────────┐
• Timer Windows │
• Theme Manager │
• Task Dialog │
• ┬────────────────────────┘
• ↕
┌─ Application Core Layer ───────────────────┐
• ┌─ Manager Services ─┐ ┌─ Timer Core ────┐ │
• Timer Manager │ │ - Timer Base │ │
• Sound Manager │ │ - Timer Options │ │
• Theme Manager │ │ - Timer Start │ │
• Update Manager │ └────────────────┬─┘ │
• ┘ │ │
• ┌─ Parser System ───┐ ↕ │
• DateTime Token │ ┌─ State ─┐ │
• TimeSpan Token │←─────────│ Running │ │
• Timer Start │ │ Paused │ │
• ┘ │ Expired │ │
• ┬────────────┴─────────┘
• ↕
┌─ Integration Layer ──────────────────────┐
• Windows Native Methods │
• Audio System (NAudio) │
• Virtual Desktop API │
• Task Dialog System │
• ┬────────────────────────┘
• ↕
┌─ System Layer ────────────────────────────┐
• Windows OS │
• .NET Framework 4.8 │
• ┘
Important Relationships
• Bidirectional communication between UI and Manager Services
• One-way dependency from Managers to Timer Core
• Integration points with Windows native features
• Parser System's interaction with Timer Core
• Audio system integration flow
Implementation Details
• File format support for audio (.wav, .ogg)
• Virtual desktop integration
• Windows native feature usage
• Timer state management
• Multi-timer support