-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAppBar.ps1
More file actions
31 lines (24 loc) · 698 Bytes
/
AppBar.ps1
File metadata and controls
31 lines (24 loc) · 698 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#First implementation of AppBar Class. <=Testing purpose
cls
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
cd $scriptPath
. '.\General.ps1'
#TODO: Split AppBar and AppBarIcon in two assemblies on disk, referencing each other
#TODO2:Put Region Designer to PowerShell.
AddAssembly "AppBar"
$Bar = New-Object AppBar ABE_TOP
. '.\startMenu.ps1'
$startM = startMenu($Bar)
$Bar.startButton.Add_Click(
{
If (-not ($startM.Visible)) {
$startM.Show()
}
else {
$startM.Hide()
}
}
)
[System.Windows.Forms.Application]::Run(($Bar))
#Later...
#http://www.codeproject.com/Tips/895840/Multi-Threaded-PowerShell-Cookbook