Horizon – Blame information for rev 13

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 using System.ComponentModel;
2 using System.IO;
3 using System.Runtime.CompilerServices;
4 using System.Xml.Serialization;
5 using Configuration.Annotations;
6  
7 namespace Configuration
8 {
9 [XmlRoot(Namespace = "urn:horizon-configuration-schema", ElementName = "Configuration")]
10 public class Configuration : INotifyPropertyChanged
11 {
12 private bool _atomicOperations = true;
13  
14 private bool _enabled;
15  
16 private string _lastFolder = "C:\\Users";
17  
18 private bool _launchOnBoot;
19  
20 private bool _showBalloonTooltips = true;
21  
22 private bool _networkSharing = false;
23  
24 private NotifyFilters _notifyFilters = NotifyFilters.LastWrite | NotifyFilters.Attributes;
25  
7 office 26 private NotifyEvent _notifyEvents = NotifyEvent.Create;
27  
28 private bool _enableGotify = false;
29  
30 private string _gotifyURL = string.Empty;
31  
13 office 32 private bool _autoNotes = true;
33  
1 office 34 public NotifyFilters NotifyFilters
35 {
36 get => _notifyFilters;
37 set
38 {
39 if (value == _notifyFilters)
40 {
41 return;
42 }
43  
44 _notifyFilters = value;
45 OnPropertyChanged();
46 }
47 }
48  
7 office 49 public NotifyEvent NotifyEvents
50 {
51 get => _notifyEvents;
52 set
53 {
54 if (value == _notifyEvents)
55 {
56 return;
57 }
58  
59 _notifyEvents = value;
60 OnPropertyChanged();
61 }
62 }
63  
64  
1 office 65 public bool NetworkSharing
66 {
67 get => _networkSharing;
68 set
69 {
70 if (value == _networkSharing)
71 {
72 return;
73 }
74  
75 _networkSharing = value;
76 OnPropertyChanged();
77 }
78 }
79  
80 public bool ShowBalloonTooltips
81 {
82 get => _showBalloonTooltips;
83 set
84 {
85 if (value == _showBalloonTooltips)
86 {
87 return;
88 }
89  
90 _showBalloonTooltips = value;
91 OnPropertyChanged();
92 }
93 }
94  
95 public bool Enabled
96 {
97 get => _enabled;
98 set
99 {
100 if (value == _enabled)
101 {
102 return;
103 }
104  
105 _enabled = value;
106 OnPropertyChanged();
107 }
108 }
109  
110 public bool LaunchOnBoot
111 {
112 get => _launchOnBoot;
113 set
114 {
115 if (value == _launchOnBoot)
116 {
117 return;
118 }
119  
120 _launchOnBoot = value;
121 OnPropertyChanged();
122 }
123 }
124  
125 public string LastFolder
126 {
127 get => _lastFolder;
128 set
129 {
130 if (value == _lastFolder)
131 {
132 return;
133 }
134  
135 _lastFolder = value;
136 OnPropertyChanged();
137 }
138 }
139  
140 public bool AtomicOperations
141 {
142 get => _atomicOperations;
143 set
144 {
145 if (value == _atomicOperations)
146 {
147 return;
148 }
149  
150 _atomicOperations = value;
151 OnPropertyChanged();
152 }
153 }
154  
7 office 155 public bool EnableGotify
156 {
157 get => _enableGotify;
158 set
159 {
160 if (value == _enableGotify)
161 {
162 return;
163 }
164  
165 _enableGotify = value;
166 OnPropertyChanged();
167 }
168 }
169  
13 office 170 public bool AutoNotes
171 {
172 get => _autoNotes;
173 set
174 {
175 if (value == _autoNotes)
176 {
177 return;
178 }
179  
180 _autoNotes = value;
181 OnPropertyChanged();
182 }
183 }
184  
7 office 185 public string GotifyURL
186 {
187 get => _gotifyURL;
188 set
189 {
190 if (value == _gotifyURL)
191 {
192 return;
193 }
194  
195 _gotifyURL = value;
196 OnPropertyChanged();
197 }
198 }
199  
1 office 200 public CaptureMode CaptureMode { get; set; } = CaptureMode.Window;
201  
202 public event PropertyChangedEventHandler PropertyChanged;
203  
204 [NotifyPropertyChangedInvocator]
205 protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
206 {
207 PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
208 }
209 }
210 }