18 lines
714 B
C#
18 lines
714 B
C#
using System.Collections.ObjectModel;
|
|
using System.ComponentModel;
|
|
using PropertyChanged;
|
|
|
|
namespace ModpackUpdater.Apps.Manager.Ui.Models.UpdatesCollectorViewMode;
|
|
|
|
public class UpdatesCollectorViewModel : INotifyPropertyChanged
|
|
{
|
|
public event PropertyChangedEventHandler? PropertyChanged;
|
|
|
|
public bool ProgressVisible { get; set; }
|
|
public double ProgressMaxValue { get; set; }
|
|
public double ProgressValue { get; set; }
|
|
[DependsOn(nameof(ProgressValue), nameof(ProgressMaxValue))]
|
|
public string? ProgressText => $"{Math.Round(ProgressValue / ProgressMaxValue * 100)}%";
|
|
public string? SearchText { get; set; }
|
|
public ObservableCollection<ModUpdateInfo> Updates { get; } = [];
|
|
} |