mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-04-01 17:12:09 +00:00
- add Computername into DataGrid (if needed) - add toggle for Update History - add Update History interface - add Update Interface Toggle Logic - add Update scan logic - initialize Update selected / all logic - center specific datagrid columns
12 lines
478 B
PowerShell
12 lines
478 B
PowerShell
function Invoke-WPFUpdateHistoryToggle {
|
|
if ($sync["WPFShowUpdateHistory"].Content -eq "Show History") {
|
|
$sync["WPFShowUpdateHistory"].Content = "Show available Updates"
|
|
$sync["HistoryGrid"].Visibility = "Visible"
|
|
$sync["UpdatesGrid"].Visibility = "Collapsed"
|
|
} else {
|
|
$sync["WPFShowUpdateHistory"].Content = "Show History"
|
|
$sync["HistoryGrid"].Visibility = "Collapsed"
|
|
$sync["UpdatesGrid"].Visibility = "Visible"
|
|
}
|
|
}
|