-
Notifications
You must be signed in to change notification settings - Fork 76
Expand file tree
/
Copy pathOnlineTemplateItem.cs
More file actions
38 lines (33 loc) · 1.12 KB
/
Copy pathOnlineTemplateItem.cs
File metadata and controls
38 lines (33 loc) · 1.12 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
using System.ComponentModel;
using System.Windows.Media.Imaging;
namespace UnityLauncherPro.Data
{
public class OnlineTemplateItem : INotifyPropertyChanged
{
private bool _isDownloaded;
public string Name { get; set; }
public string Description { get; set; }
public string RenderPipeline { get; set; }
public string Type { get; set; } // Core, Learning, Sample,
public string PreviewImageURL { get; set; }
public BitmapImage PreviewImage { get; set; }
public string TarBallURL { get; set; }
public bool IsDownloaded
{
get { return _isDownloaded; }
set
{
if (_isDownloaded != value)
{
_isDownloaded = value;
OnPropertyChanged(nameof(IsDownloaded));
}
}
}
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void OnPropertyChanged(string propertyName)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
}
}