2023-03-07 14:28:00 -06:00
|
|
|
function Invoke-WPFButton {
|
|
|
|
|
|
|
|
<#
|
2023-10-19 17:12:55 -05:00
|
|
|
|
|
|
|
.SYNOPSIS
|
|
|
|
Invokes the function associated with the clicked button
|
|
|
|
|
|
|
|
.PARAMETER Button
|
|
|
|
The name of the button that was clicked
|
|
|
|
|
2023-03-07 14:28:00 -06:00
|
|
|
#>
|
|
|
|
|
2023-10-19 17:12:55 -05:00
|
|
|
Param ([string]$Button)
|
|
|
|
|
|
|
|
# Use this to get the name of the button
|
2023-03-07 14:28:00 -06:00
|
|
|
#[System.Windows.MessageBox]::Show("$Button","Chris Titus Tech's Windows Utility","OK","Info")
|
|
|
|
|
|
|
|
Switch -Wildcard ($Button){
|
|
|
|
|
|
|
|
"WPFTab?BT" {Invoke-WPFTab $Button}
|
|
|
|
"WPFinstall" {Invoke-WPFInstall}
|
2023-05-09 13:14:27 -05:00
|
|
|
"WPFuninstall" {Invoke-WPFUnInstall}
|
2023-03-07 14:28:00 -06:00
|
|
|
"WPFInstallUpgrade" {Invoke-WPFInstallUpgrade}
|
|
|
|
"WPFdesktop" {Invoke-WPFPresets "Desktop"}
|
|
|
|
"WPFlaptop" {Invoke-WPFPresets "laptop"}
|
|
|
|
"WPFminimal" {Invoke-WPFPresets "minimal"}
|
2023-05-09 13:14:27 -05:00
|
|
|
"WPFexport" {Invoke-WPFImpex -type "export" -CheckBox "WPFTweaks"}
|
|
|
|
"WPFimport" {Invoke-WPFImpex -type "import" -CheckBox "WPFTweaks"}
|
|
|
|
"WPFexportWinget" {Invoke-WPFImpex -type "export" -CheckBox "WPFInstall"}
|
|
|
|
"WPFimportWinget" {Invoke-WPFImpex -type "import" -CheckBox "WPFInstall"}
|
2023-03-07 14:28:00 -06:00
|
|
|
"WPFclear" {Invoke-WPFPresets -preset $null -imported $true}
|
2023-05-09 13:14:27 -05:00
|
|
|
"WPFclearWinget" {Invoke-WPFPresets -preset $null -imported $true -CheckBox "WPFInstall"}
|
2023-03-07 14:28:00 -06:00
|
|
|
"WPFtweaksbutton" {Invoke-WPFtweaksbutton}
|
|
|
|
"WPFAddUltPerf" {Invoke-WPFUltimatePerformance -State "Enabled"}
|
|
|
|
"WPFRemoveUltPerf" {Invoke-WPFUltimatePerformance -State "Disabled"}
|
|
|
|
"WPFundoall" {Invoke-WPFundoall}
|
|
|
|
"WPFFeatureInstall" {Invoke-WPFFeatureInstall}
|
|
|
|
"WPFPanelDISM" {Invoke-WPFPanelDISM}
|
|
|
|
"WPFPanelAutologin" {Invoke-WPFPanelAutologin}
|
|
|
|
"WPFPanelcontrol" {Invoke-WPFControlPanel -Panel $button}
|
|
|
|
"WPFPanelnetwork" {Invoke-WPFControlPanel -Panel $button}
|
|
|
|
"WPFPanelpower" {Invoke-WPFControlPanel -Panel $button}
|
2023-08-02 19:43:52 -05:00
|
|
|
"WPFPanelregion" {Invoke-WPFControlPanel -Panel $button}
|
2023-03-07 14:28:00 -06:00
|
|
|
"WPFPanelsound" {Invoke-WPFControlPanel -Panel $button}
|
|
|
|
"WPFPanelsystem" {Invoke-WPFControlPanel -Panel $button}
|
|
|
|
"WPFPaneluser" {Invoke-WPFControlPanel -Panel $button}
|
|
|
|
"WPFUpdatesdefault" {Invoke-WPFUpdatesdefault}
|
|
|
|
"WPFFixesUpdate" {Invoke-WPFFixesUpdate}
|
2023-11-28 16:11:11 -06:00
|
|
|
"WPFFixesWinget" {Invoke-WPFFixesWinget}
|
2023-07-13 15:46:00 -05:00
|
|
|
"WPFFixesNetwork" {Invoke-WPFFixesNetwork}
|
2023-03-07 14:28:00 -06:00
|
|
|
"WPFUpdatesdisable" {Invoke-WPFUpdatesdisable}
|
|
|
|
"WPFUpdatessecurity" {Invoke-WPFUpdatessecurity}
|
2023-05-09 13:14:27 -05:00
|
|
|
"WPFWinUtilShortcut" {Invoke-WPFShortcut -ShortcutToAdd "WinUtil"}
|
|
|
|
"WPFGetInstalled" {Invoke-WPFGetInstalled -CheckBox "winget"}
|
|
|
|
"WPFGetInstalledTweaks" {Invoke-WPFGetInstalled -CheckBox "tweaks"}
|
2023-11-28 16:11:11 -06:00
|
|
|
"WPFGetIso" {Invoke-WPFGetIso}
|
|
|
|
"WPFMicrowin" {Invoke-WPFMicrowin}
|
Test 2023 12 19 (#1294)
* Compile Winutil
* Issue #1283, #1280 fixes, more (#1288)
* Explorer Fix
* Wifi, Explorer Crash, WinUtil Icon fixes. First attempt at white theme
* White theme
* Fix for clashing microwin directories if process fails, now new directory will be generated
* * Tested latest Windows 10 (22H2) images work fine
* Made dialog box more clear for issue #1283
* Added better logic for handling takeown /D flag for different locals issue #1280
* Refreshed the UI to more modern look
* Improved white theme
* Regrouped Tweak tab to make more sense
* Advanced tweaks were in a separate column but the button applied both Essential and advanced now they are in the same column and button applies both
* All instant action buttons were moved to Customize preferences column
* Explorer lockup Fix
* Wifi, Explorer Crash, WinUtil Icon fixes.
* Fix for clashing microwin directories if process fails, now new directory will be generated
* Merge all
* Theme improvement, adding icon to the shortcut
* Ability to download oscdimg from github, reorginizing Apps to fit better on more (smaller screens)
* Fixing release branch to WinUtil
* Adding double click to fullscreen
* Update Get-Oscdimg.ps1
---------
Co-authored-by: KonTy <KonTy@github.com>
Co-authored-by: Chris Titus <contact@christitus.com>
* Update winutil.ps1
* remove merc and thorium
* Ashlyn Programs
* Also inject drivers into boot.wim
* copy #1291
new branch
---------
Co-authored-by: ChrisTitusTech <ChrisTitusTech@users.noreply.github.com>
Co-authored-by: KonTy <9524513+KonTy@users.noreply.github.com>
Co-authored-by: KonTy <KonTy@github.com>
Co-authored-by: Cedric Lewe <0skillallluck@pm.me>
2023-12-19 13:55:55 -06:00
|
|
|
"WPFCloseButton" {Invoke-CloseButton}
|
2023-03-07 14:28:00 -06:00
|
|
|
}
|
|
|
|
}
|