Skip to content

Commit

Permalink
Integration and deployment of Settings UI
Browse files Browse the repository at this point in the history
#81 first try deployed - validation needed in next steps.
  • Loading branch information
eliweitzman committed May 26, 2024
1 parent cbc35a8 commit 5ee9af1
Show file tree
Hide file tree
Showing 2 changed files with 679 additions and 516 deletions.
11 changes: 10 additions & 1 deletion ETT.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ $complianceFlag = $false#>


#MiniTools Dot Sourcing - For development purpose only. DOT Sourcing doesn't work correctly with ps2exe.
$Dependencies = "MiniClients\ADLookup.ps1","MiniClients\LAPSToolV2.ps1","MiniClients\BitlockerToolV2.ps1","PSAssets\ToolboxFunctions.ps1", "PSAssets\GenericToolWindow.ps1"
$Dependencies = "MiniClients\ADLookup.ps1","MiniClients\LAPSToolV2.ps1","MiniClients\BitlockerToolV2.ps1","PSAssets\ToolboxFunctions.ps1", "PSAssets\GenericToolWindow.ps1",".\MiniClients\SettingsMenu.ps1"
$Dependencies | ForEach-Object {
try {
$psFile = ".\$($_)"
Expand Down Expand Up @@ -926,6 +926,7 @@ $menuLicenses = New-Object System.Windows.Forms.ToolStripMenuItem
$menuGitHub = New-Object System.Windows.Forms.ToolStripMenuItem

#One-Off Tabs
$menuSettings = New-Object System.Windows.Forms.ToolStripMenuItem
$menuExit = New-Object System.Windows.Forms.ToolStripMenuItem


Expand Down Expand Up @@ -1233,6 +1234,14 @@ $menuRenameComputer.Add_Click({
$menuFunctions.DropDownItems.Add($menuRenameComputer)
#>

#Settings Button
$menuSettings.Text = "Settings"
$menuSettings.Add_Click({
#Open the settings window script - SettingsMenu.ps1
Open-SettingsMenu
})
[void]$menu.Items.Add($menuSettings)

#Exit Button
$menuExit.Text = "Exit"
$menuExit.Add_Click({ $ETT.Close() })
Expand Down
Loading

0 comments on commit 5ee9af1

Please sign in to comment.