mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-12-29 16:14:55 +00:00
29 lines
878 B
PowerShell
29 lines
878 B
PowerShell
|
|
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'
|
||
|
|
}
|
||
|
|
}
|