Horizon – Diff between revs 12 and 28

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