Horizon – Blame information for rev 28

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 using System.ComponentModel;
28 office 2 using System.IO;
1 office 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  
12 office 22 private bool _networkSharing = false;
23  
28 office 24 private NotifyFilters _notifyFilters = NotifyFilters.LastWrite | NotifyFilters.Attributes;
25  
26 public NotifyFilters NotifyFilters
27 {
28 get => _notifyFilters;
29 set
30 {
31 if (value == _notifyFilters)
32 {
33 return;
34 }
35  
36 _notifyFilters = value;
37 OnPropertyChanged();
38 }
39 }
40  
12 office 41 public bool NetworkSharing
42 {
43 get => _networkSharing;
44 set
45 {
46 if (value == _networkSharing)
47 {
48 return;
49 }
50  
51 _networkSharing = value;
52 OnPropertyChanged();
53 }
54 }
55  
1 office 56 public bool ShowBalloonTooltips
57 {
58 get => _showBalloonTooltips;
59 set
60 {
61 if (value == _showBalloonTooltips)
62 {
63 return;
64 }
65  
66 _showBalloonTooltips = value;
67 OnPropertyChanged();
68 }
69 }
70  
71 public bool Enabled
72 {
73 get => _enabled;
74 set
75 {
76 if (value == _enabled)
77 {
78 return;
79 }
80  
81 _enabled = value;
82 OnPropertyChanged();
83 }
84 }
85  
86 public bool LaunchOnBoot
87 {
88 get => _launchOnBoot;
89 set
90 {
91 if (value == _launchOnBoot)
92 {
93 return;
94 }
95  
96 _launchOnBoot = value;
97 OnPropertyChanged();
98 }
99 }
100  
101 public string LastFolder
102 {
103 get => _lastFolder;
104 set
105 {
106 if (value == _lastFolder)
107 {
108 return;
109 }
110  
111 _lastFolder = value;
112 OnPropertyChanged();
113 }
114 }
115  
116 public bool AtomicOperations
117 {
118 get => _atomicOperations;
119 set
120 {
121 if (value == _atomicOperations)
122 {
123 return;
124 }
125  
126 _atomicOperations = value;
127 OnPropertyChanged();
128 }
129 }
130  
131 public CaptureMode CaptureMode { get; set; } = CaptureMode.Window;
132  
133 public event PropertyChangedEventHandler PropertyChanged;
134  
135 [NotifyPropertyChangedInvocator]
136 protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
137 {
138 PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
139 }
140 }
141 }