mirror of
https://github.com/rbalsleyMSFT/FFU.git
synced 2026-06-14 02:09:35 -06:00
Docs: Add PowerShell comment-based help to all script modules
Adds standard PowerShell comment-based help blocks (synopsis and description) to all UI and common library script modules (`.psm1`) and the main UI entry point script (`.ps1`). This improves maintainability and discoverability by documenting the purpose of each script file. Also removes various redundant or commented-out code blocks.
This commit is contained in:
@@ -1,3 +1,18 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Initializes the user interface for the BuildFFUVM_UI application.
|
||||
|
||||
.DESCRIPTION
|
||||
This script module contains functions responsible for initializing the WPF user interface.
|
||||
It handles several key tasks:
|
||||
- Caching references to all UI controls for efficient access.
|
||||
- Populating UI elements like combo boxes with data (e.g., Hyper-V switches).
|
||||
- Setting default values for all controls based on configuration or predefined settings.
|
||||
- Dynamically creating and configuring complex UI components, such as sortable/selectable GridView columns and feature selection grids.
|
||||
|
||||
This module is critical for setting up the initial state of the application window when it first loads.
|
||||
#>
|
||||
|
||||
function Initialize-UIControls {
|
||||
param([PSCustomObject]$State)
|
||||
WriteLog "Initializing UI control references..."
|
||||
|
||||
Reference in New Issue
Block a user