about summary refs log tree commit diff
path: root/ModerationClient/Services/StatusBarService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ModerationClient/Services/StatusBarService.cs')
-rw-r--r--ModerationClient/Services/StatusBarService.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/ModerationClient/Services/StatusBarService.cs b/ModerationClient/Services/StatusBarService.cs

index 57aff21..f1d7223 100644 --- a/ModerationClient/Services/StatusBarService.cs +++ b/ModerationClient/Services/StatusBarService.cs
@@ -1,4 +1,5 @@ using System; +using System.Collections.ObjectModel; using ArcaneLibs; namespace ModerationClient.Services; @@ -16,4 +17,21 @@ public class StatusBarService : NotifyPropertyChanged { get => _isBusy; set => SetField(ref _isBusy, value); } + + public ObservableCollection<Progress> ProgressBars { get; } = new(); + + + public class Progress : NotifyPropertyChanged { + public Progress(int total) { + Total = total; + } + + public int Total { get; } + public int Current { get; private set; } + + public void Increment() { + Current++; + OnPropertyChanged(nameof(Current)); + } + } } \ No newline at end of file