15 lines
461 B
C#
15 lines
461 B
C#
using System.ComponentModel;
|
|
using PropertyChanged;
|
|
|
|
namespace ModpackUpdater.Apps.Manager.Ui.Models;
|
|
|
|
public class ProgressInfos : INotifyPropertyChanged
|
|
{
|
|
public event PropertyChangedEventHandler? PropertyChanged;
|
|
|
|
public bool Visible { get; set; }
|
|
public double MaxValue { get; set; }
|
|
public double Value { get; set; }
|
|
[DependsOn(nameof(Value), nameof(MaxValue))]
|
|
public string? Text => $"{Math.Round(Value / MaxValue * 100)}%";
|
|
} |