Horizon – Blame information for rev 12

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 using System.ComponentModel;
2 using System.Runtime.CompilerServices;
3 using System.Xml.Serialization;
4 using Configuration.Annotations;
5  
6 namespace Configuration
7 {
8 [XmlRoot(Namespace = "urn:horizon-configuration-schema", ElementName = "Configuration")]
9 public class Configuration : INotifyPropertyChanged
10 {
11 private bool _atomicOperations = true;
12  
13 private bool _enabled;
14  
15 private string _lastFolder = "C:\\Users";
16  
17 private bool _launchOnBoot;
18  
19 private bool _showBalloonTooltips = true;
20  
12 office 21 private bool _networkSharing = false;
22  
23 public bool NetworkSharing
24 {
25 get => _networkSharing;
26 set
27 {
28 if (value == _networkSharing)
29 {
30 return;
31 }
32  
33 _networkSharing = value;
34 OnPropertyChanged();
35 }
36 }
37  
1 office 38 public bool ShowBalloonTooltips
39 {
40 get => _showBalloonTooltips;
41 set
42 {
43 if (value == _showBalloonTooltips)
44 {
45 return;
46 }
47  
48 _showBalloonTooltips = value;
49 OnPropertyChanged();
50 }
51 }
52  
53 public bool Enabled
54 {
55 get => _enabled;
56 set
57 {
58 if (value == _enabled)
59 {
60 return;
61 }
62  
63 _enabled = value;
64 OnPropertyChanged();
65 }
66 }
67  
68 public bool LaunchOnBoot
69 {
70 get => _launchOnBoot;
71 set
72 {
73 if (value == _launchOnBoot)
74 {
75 return;
76 }
77  
78 _launchOnBoot = value;
79 OnPropertyChanged();
80 }
81 }
82  
83 public string LastFolder
84 {
85 get => _lastFolder;
86 set
87 {
88 if (value == _lastFolder)
89 {
90 return;
91 }
92  
93 _lastFolder = value;
94 OnPropertyChanged();
95 }
96 }
97  
98 public bool AtomicOperations
99 {
100 get => _atomicOperations;
101 set
102 {
103 if (value == _atomicOperations)
104 {
105 return;
106 }
107  
108 _atomicOperations = value;
109 OnPropertyChanged();
110 }
111 }
112  
113 public CaptureMode CaptureMode { get; set; } = CaptureMode.Window;
114  
115 public event PropertyChangedEventHandler PropertyChanged;
116  
117 [NotifyPropertyChangedInvocator]
118 protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
119 {
120 PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
121 }
122 }
123 }