diff options
Diffstat (limited to 'ModerationClient/Services/StatusBarService.cs')
-rw-r--r-- | ModerationClient/Services/StatusBarService.cs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ModerationClient/Services/StatusBarService.cs b/ModerationClient/Services/StatusBarService.cs new file mode 100644 index 0000000..57aff21 --- /dev/null +++ b/ModerationClient/Services/StatusBarService.cs @@ -0,0 +1,19 @@ +using System; +using ArcaneLibs; + +namespace ModerationClient.Services; + +public class StatusBarService : NotifyPropertyChanged { + private string _statusText = "Ready"; + private bool _isBusy; + + public string StatusText { + get => _statusText + " " + DateTime.Now.ToString("u")[..^1]; + set => SetField(ref _statusText, value); + } + + public bool IsBusy { + get => _isBusy; + set => SetField(ref _isBusy, value); + } +} \ No newline at end of file |