How skylinecommunications/skyline.dataminer.utils.interactiveautomationscripttoolkit works
Project Type and Purpose
• This is a C# class‐library (distributed via NuGet) that provides a high‐level, widget‐based UI toolkit for writing interactive automation scripts on the DataMiner platform.
• It builds on the Skyline.DataMiner.Automation API and exposes a set of UI components (dialogs, buttons, dropdowns, etc.), layout managers, and an event‐driven controller.
High‐Level Modules (Top‐Level Directories)
• InteractiveAutomationToolkit (main library)
• Components: UI widgets (Button, CheckBox, DropDown, TreeView, etc.) + generic & interface subfolders
• Dialogs: base Dialog class + common dialogs (MessageDialog, ProgressDialog, etc.)
• Layout: widget layout abstractions (IWidgetLayout, SectionLayout, margin, alignment, styles)
• Exceptions: custom exceptions for invalid UI states
• Extensions: helper extensions (e.g., EnumExtensions)
• InteractiveController & IUIResults/WrappedUIResults: orchestrates event loop & dialog navigation
• ScriptAbortPopupBehavior, NamespaceDoc, Project files, rulesets, styling
• InteractiveAutomationToolkitTests (unit tests for each widget, dialog, controller, etc.)
• CI/CD workflow and solution files (.sln, .github/workflows, .gitignore, LICENSE, README)
External Dependencies
• Skyline.DataMiner.Automation (engine interface)
• .NET runtime (class-library target)
• NuGet packaging infrastructure
Identifying Architecture Patterns
• Model‐View‐Presenter (MVP) style:
• View = Dialog + Widgets (Components + Layout)
• Presenter = InteractiveController (event loop, state transitions)
• Model = Data/state exposed via IUIResults & returned values
• Composition: Dialogs compose Widgets; Layout places Widgets; Controller manages Dialog lifecycles and routes widget events to engine calls.
Diagramming Conventions
• Injection (Engine → Controller)
• Calls (Controller → Dialog), (Dialog → Widgets), (Widgets → Engine)
• Exception flow if desired (Modules → Exception subsystem)
• Test suite interactions
• Core orchestration (Controller layer) – e.g., blue
• UI presentation (Dialog + Widgets + Layout) – e.g., green
• Infrastructure (Exceptions, Extensions) – e.g., orange
• External (DataMiner Engine, NuGet consumers) – e.g., gray