-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path7_Progress.ps1
More file actions
21 lines (15 loc) · 712 Bytes
/
7_Progress.ps1
File metadata and controls
21 lines (15 loc) · 712 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$ParentBar = New-BTProgressBar -Title 'ParentTitle' -Status 'ParentStatus' -Value 'ParentValue'
$ChildBar = New-BTProgressBar -Title 'ChildTitle' -Status 'ChildStatus' -Value 'ChildValue'
$DataBinding = @{
'ParentTitle' = 'Stream starting soon'
'ParentStatus' = ''
'ParentValue' = 0
'ChildTitle' = ''
'ChildStatus' = ''
'ChildValue' = 0
}
$Id = 'SecondUpdateDemo'
$Text = 'Progress Bar Update Demo', 'There is two progress bars, they should be updated dynamically'
New-BurntToastNotification -Text $Text -UniqueIdentifier $Id -ProgressBar $ParentBar, $ChildBar -DataBinding $DataBinding
. .\Functions\Start-Progress.ps1
Start-Progress -DataBinding $DataBinding -UniqueId $Id