-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMyApp.cs
158 lines (139 loc) · 3.62 KB
/
MyApp.cs
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace Elite_Dangerous_Addon_Launcher_V2
{
public class MyApp : INotifyPropertyChanged
{
#region Private Fields
private string _args;
private string _exeName;
private string _installationURL;
private bool _isEnabled;
private string _name;
private int _order;
private string _path;
private string _webAppURL;
#endregion Private Fields
#region Public Events
public MyApp DeepCopy()
{
return new MyApp
{
Args = this.Args,
ExeName = this.ExeName,
InstallationURL = this.InstallationURL,
IsEnabled = this.IsEnabled,
Name = this.Name,
Order = this.Order,
Path = this.Path,
WebAppURL = this.WebAppURL
};
}
public event PropertyChangedEventHandler PropertyChanged;
#endregion Public Events
#region Public Properties
public string Args
{
get { return _args; }
set
{
if (_args != value)
{
_args = value;
OnPropertyChanged();
}
}
}
public string ExeName
{
get { return _exeName; }
set
{
if (_exeName != value)
{
_exeName = value;
OnPropertyChanged();
}
}
}
public string InstallationURL
{
get { return _installationURL; }
set
{
if (_installationURL != value)
{
_installationURL = value;
OnPropertyChanged();
}
}
}
public bool IsEnabled
{
get { return _isEnabled; }
set
{
if (_isEnabled != value)
{
_isEnabled = value;
OnPropertyChanged();
}
}
}
public string Name
{
get { return _name; }
set
{
if (_name != value)
{
_name = value;
OnPropertyChanged();
}
}
}
public int Order
{
get { return _order; }
set
{
if (_order != value)
{
_order = value;
OnPropertyChanged();
}
}
}
public string Path
{
get { return _path; }
set
{
if (_path != value)
{
_path = value;
OnPropertyChanged();
}
}
}
public string WebAppURL
{
get { return _webAppURL; }
set
{
if (_webAppURL != value)
{
_webAppURL = value;
OnPropertyChanged();
}
}
}
#endregion Public Properties
#region Protected Methods
protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
#endregion Protected Methods
}
}