forked from Reloaded-Project/Reloaded-II
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathInstallPackageViewModel.cs
More file actions
51 lines (47 loc) · 1.19 KB
/
Copy pathInstallPackageViewModel.cs
File metadata and controls
51 lines (47 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
namespace Reloaded.Mod.Launcher.Lib.Models.ViewModel.Dialog;
/// <summary>
/// ViewModel for downloading an individual package.
/// </summary>
public class InstallPackageViewModel : INotifyPropertyChanged
{
private string _text;
public string Text
{
get => _text;
set
{
if (_text != value)
{
_text = value;
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(Text)));
}
}
}
private double _progress;
public double Progress
{
get => _progress;
set
{
if (_progress != value)
{
_progress = value;
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(Progress)));
}
}
}
private bool _isComplete;
public bool IsComplete
{
get => _isComplete;
set
{
if (_isComplete != value)
{
_isComplete = value;
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(IsComplete)));
}
}
}
public event PropertyChangedEventHandler PropertyChanged;
}