Program.cs

Program.cs is the WinForms application entry point. It decides whether VizzyCode runs as the interactive desktop app, a repository verification command, or a direct roundtrip test helper. desktop entrypoint

Main role

This script is the first routing layer before the UI or conversion engine takes over.

Responsibilities

AreaBehavior
UI startupInitializes Windows Forms and opens MainForm.cs.
File argumentPasses the first file argument into the main form.
Verification modeRuns VizzyCoverageVerifier.cs when called with --verify-vizzy.
Roundtrip test modeLoads XML, converts it to code, then converts back to XML.
Icon generationBuilds a simple in-memory application icon.

Control Flow

flowchart TD
    A[Main args] --> B{--verify-vizzy}
    B -->|Yes| C[VizzyCoverageVerifier.Run]
    B -->|No| D{--test-roundtrip}
    D -->|Yes| E[VizzyXmlConverter import/export]
    D -->|No| F[ApplicationConfiguration.Initialize]
    F --> G[New MainForm]
    G --> H[Application.Run]

Key Dependencies

DependencyPurpose
MainForm.csInteractive editor surface.
VizzyCoverageVerifier.csVerification command behavior.
VizzyXmlConverter.csRoundtrip test conversion.

Related notes: Component Map, 01 - Project Architecture, 13 - Recommended Workflows.