Refactor UI initialization and event handling

Moves the VM Switch data population and event handler logic from the main UI script into the `FFUUI.Core.Initialize` module.

This change improves code organization by centralizing UI initialization and event registration into dedicated functions, making the main script cleaner.

It also simplifies module manifests by changing explicit function exports to a wildcard.
This commit is contained in:
rbalsleyMSFT
2025-06-17 14:18:41 -07:00
parent 0fb9878cff
commit ab7c8aa250
3 changed files with 68 additions and 47 deletions
@@ -567,4 +567,4 @@ function BuildFeaturesGrid {
# SECTION: Module Export
# --------------------------------------------------------------------------
Export-ModuleMember -Function Get-WindowsSettingsDefaults, Get-AvailableWindowsReleases, Get-AvailableWindowsVersions, Get-AvailableSkusForRelease, Update-WindowsReleaseCombo, Update-WindowsVersionCombo, Update-WindowsSkuCombo, Initialize-WindowsSettingsCombos, UpdateOptionalFeaturesString, BuildFeaturesGrid
Export-ModuleMember -Function *