mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-06-28 09:04:47 -05:00
[Microwin] Fix & Cleanup UI (#3426)
* hide MicrowinISOPanel on proceeding steps * fix textbox styling + remove Password text * MicroWinPanelToggling
This commit is contained in:
28
functions/microwin/Toggle-MicrowinPanel.ps1
Normal file
28
functions/microwin/Toggle-MicrowinPanel.ps1
Normal file
@ -0,0 +1,28 @@
|
||||
function Toggle-MicrowinPanel {
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Toggles the visibility of the Microwin options and ISO panels in the GUI.
|
||||
.DESCRIPTION
|
||||
This function toggles the visibility of the Microwin options and ISO panels in the GUI.
|
||||
.PARAMETER MicrowinOptionsPanel
|
||||
The panel containing Microwin options.
|
||||
.PARAMETER MicrowinISOPanel
|
||||
The panel containing the Microwin ISO options.
|
||||
.EXAMPLE
|
||||
Toggle-MicrowinPanel 1
|
||||
#>
|
||||
param (
|
||||
[Parameter(Mandatory = $true, Position = 0)]
|
||||
[ValidateSet(1, 2)]
|
||||
[int]$PanelNumber
|
||||
)
|
||||
|
||||
if ($PanelNumber -eq 1) {
|
||||
$sync.MicrowinISOPanel.Visibility = 'Visible'
|
||||
$sync.MicrowinOptionsPanel.Visibility = 'Collapsed'
|
||||
|
||||
} elseif ($PanelNumber -eq 2) {
|
||||
$sync.MicrowinOptionsPanel.Visibility = 'Visible'
|
||||
$sync.MicrowinISOPanel.Visibility = 'Collapsed'
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user