mirror of
https://github.com/chylex/Discord-History-Tracker.git
synced 2025-07-04 10:38:52 +02:00
24 lines
456 B
C#
24 lines
456 B
C#
using PropertyChanged.SourceGenerator;
|
|
|
|
namespace DHT.Desktop.Dialogs.Progress;
|
|
|
|
sealed partial class ProgressItem {
|
|
[Notify]
|
|
private string message = "";
|
|
|
|
[Notify]
|
|
private string items = "";
|
|
|
|
[Notify]
|
|
private long progress = 0L;
|
|
|
|
[Notify]
|
|
private bool isIndeterminate;
|
|
|
|
[DependsOn(nameof(Message))]
|
|
public bool IsVisible => !string.IsNullOrEmpty(Message);
|
|
|
|
[DependsOn(nameof(IsVisible))]
|
|
public double Opacity => IsVisible ? 1.0 : 0.0;
|
|
}
|