mirror of
https://github.com/ChrisTitusTech/winutil
synced 2026-02-07 00:10:10 +00:00
* Delete microwin functions * Update main.ps1 * Remove oscdimg.exe which is used by microwin * Delete config/autounattend.xml * Update .gitignore * Update bug_report.yaml * Update themes.json * Update Invoke-WinUtilFontScaling.ps1 * Update Invoke-AutoConfigDialog.ps1 * Update Invoke-WPFButton.ps1 * Update inputXML.xaml * Delete docs/assets/images/microwin directory * Delete docs/assets/images/MicroWinScreen.png * Delete docs/assets/images/Microwin-Dark.png * Delete docs/assets/images/Microwin-Light.png * Update faq.md * Update KnownIssues.md * Update getting-started.md * Update _index.md * Delete docs/content/userguide/microwin directory * Update architecture.md --------- Co-authored-by: Chris Titus <dfm.titus@gmail.com>
68 lines
3.3 KiB
PowerShell
68 lines
3.3 KiB
PowerShell
function Invoke-WPFButton {
|
|
|
|
<#
|
|
|
|
.SYNOPSIS
|
|
Invokes the function associated with the clicked button
|
|
|
|
.PARAMETER Button
|
|
The name of the button that was clicked
|
|
|
|
#>
|
|
|
|
Param ([string]$Button)
|
|
|
|
# Use this to get the name of the button
|
|
#[System.Windows.MessageBox]::Show("$Button","Chris Titus Tech's Windows Utility","OK","Info")
|
|
if (-not $sync.ProcessRunning) {
|
|
Set-WinUtilProgressBar -label "" -percent 0
|
|
}
|
|
|
|
Switch -Wildcard ($Button) {
|
|
"WPFTab?BT" {Invoke-WPFTab $Button}
|
|
"WPFInstall" {Invoke-WPFInstall}
|
|
"WPFUninstall" {Invoke-WPFUnInstall}
|
|
"WPFInstallUpgrade" {Invoke-WPFInstallUpgrade}
|
|
"WPFCollapseAllCategories" {Invoke-WPFToggleAllCategories -Action "Collapse"}
|
|
"WPFExpandAllCategories" {Invoke-WPFToggleAllCategories -Action "Expand"}
|
|
"WPFStandard" {Invoke-WPFPresets "Standard" -checkboxfilterpattern "WPFTweak*"}
|
|
"WPFMinimal" {Invoke-WPFPresets "Minimal" -checkboxfilterpattern "WPFTweak*"}
|
|
"WPFClearTweaksSelection" {Invoke-WPFPresets -imported $true -checkboxfilterpattern "WPFTweak*"}
|
|
"WPFClearInstallSelection" {Invoke-WPFPresets -imported $true -checkboxfilterpattern "WPFInstall*"}
|
|
"WPFtweaksbutton" {Invoke-WPFtweaksbutton}
|
|
"WPFOOSUbutton" {Invoke-WPFOOSU}
|
|
"WPFAddUltPerf" {Invoke-WPFUltimatePerformance -State "Enable"}
|
|
"WPFRemoveUltPerf" {Invoke-WPFUltimatePerformance -State "Disable"}
|
|
"WPFundoall" {Invoke-WPFundoall}
|
|
"WPFFeatureInstall" {Invoke-WPFFeatureInstall}
|
|
"WPFPanelDISM" {Invoke-WPFSystemRepair}
|
|
"WPFPanelAutologin" {Invoke-WPFPanelAutologin}
|
|
"WPFPanelComputer" {Invoke-WPFControlPanel -Panel $button}
|
|
"WPFPanelControl" {Invoke-WPFControlPanel -Panel $button}
|
|
"WPFPanelNetwork" {Invoke-WPFControlPanel -Panel $button}
|
|
"WPFPanelPower" {Invoke-WPFControlPanel -Panel $button}
|
|
"WPFPanelPrinter" {Invoke-WPFControlPanel -Panel $button}
|
|
"WPFPanelRegion" {Invoke-WPFControlPanel -Panel $button}
|
|
"WPFPanelRestore" {Invoke-WPFControlPanel -Panel $button}
|
|
"WPFPanelSound" {Invoke-WPFControlPanel -Panel $button}
|
|
"WPFPanelSystem" {Invoke-WPFControlPanel -Panel $button}
|
|
"WPFPanelTimedate" {Invoke-WPFControlPanel -Panel $button}
|
|
"WPFPanelUser" {Invoke-WPFControlPanel -Panel $button}
|
|
"WPFUpdatesdefault" {Invoke-WPFUpdatesdefault}
|
|
"WPFFixesUpdate" {Invoke-WPFFixesUpdate}
|
|
"WPFFixesWinget" {Invoke-WPFFixesWinget}
|
|
"WPFRunAdobeCCCleanerTool" {Invoke-WPFRunAdobeCCCleanerTool}
|
|
"WPFFixesNetwork" {Invoke-WPFFixesNetwork}
|
|
"WPFUpdatesdisable" {Invoke-WPFUpdatesdisable}
|
|
"WPFUpdatessecurity" {Invoke-WPFUpdatessecurity}
|
|
"WPFWinUtilShortcut" {Invoke-WPFShortcut -ShortcutToAdd "WinUtil" -RunAsAdmin $true}
|
|
"WPFGetInstalled" {Invoke-WPFGetInstalled -CheckBox "winget"}
|
|
"WPFGetInstalledTweaks" {Invoke-WPFGetInstalled -CheckBox "tweaks"}
|
|
"WPFCloseButton" {Invoke-WPFCloseButton}
|
|
"WPFWinUtilInstallPSProfile" {Invoke-WinUtilInstallPSProfile}
|
|
"WPFWinUtilUninstallPSProfile" {Invoke-WinUtilUninstallPSProfile}
|
|
"WPFWinUtilSSHServer" {Invoke-WPFSSHServer}
|
|
"WPFselectedAppsButton" {$sync.selectedAppsPopup.IsOpen = -not $sync.selectedAppsPopup.IsOpen}
|
|
}
|
|
}
|