How user4000/tm-win-forms works
Project type and purpose
• This repository implements “tm‑win‑forms,” a lightweight WinForms microframework (TmWinForms) plus an Example desktop client (TmWinFormsExample).
• Purpose: provide reusable UI components (alerts, page‐management, treeviews, theming), a pub/sub message hub, configuration & localization support, plus a small sample app that consumes the framework.
File structure
• Top‐level projects:
• TmWinForms (class library – the framework)
• TmWinFormsExample (WinForms EXE – a sample application)
• Key TmWinForms folders:
• Alert: UI component for pop‑up notifications
• Forms: base forms (Main, Log, Settings, Treeview, Exit, UserForms, ErrorMessage)
• Management: orchestrates lifecycle, page navigation, service calls, theme handling, treeview interactions
• Message_Hub: in‑process pub/sub broker (IMessageHub, MessageHub, Subscriptions)
• Standard: shared interfaces (IConnection, IFrameworkLogger, IUserForm events, localization), models, settings, and helper classes
• Utilities: low‑level helpers (converters, JSON settings)
• TmWinFormsExample:
• Forms: concrete UI screens that derive from the framework’s base forms
• Management: single CxManager that wires up the framework and example forms
• Program.cs: entry point
README for additional insights
• Only a one‐line description: “Microframework for developing WinForms desktop applications.”
Elements
• Initialization flow (Program → FrameworkManager → Service & MessageHub setup)
• Event flow (Form events → MessageHub → PageManager/TreeviewManager)
• Data flow (SettingsLoader → FrameworkManager; Logger → CxLogger)
• Blue for UI components
• Green for orchestration/management services
• Yellow for infrastructure (MessageHub, Utilities, Standard)