about summary refs log tree commit diff
path: root/ModerationClient/Services/StatusBarService.cs
blob: 57aff210abf001a1a31ffe62a76847e461ae1f4f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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);
    }
}