Winify – Diff between revs 30 and 44
?pathlinks?
Rev 30 | Rev 44 | |||
---|---|---|---|---|
1 | using System.ComponentModel; |
1 | using System.ComponentModel; |
|
2 | using System.Runtime.CompilerServices; |
2 | using System.Runtime.CompilerServices; |
|
3 | using System.Xml.Serialization; |
3 | using System.Xml.Serialization; |
|
4 | using Configuration.Annotations; |
4 | using Configuration.Annotations; |
|
5 | |
5 | |
|
6 | namespace Configuration |
6 | namespace Configuration |
|
7 | { |
7 | { |
|
8 | [XmlRoot(Namespace = "urn:winify-configuration-schema", ElementName = "Configuration")] |
8 | [XmlRoot(Namespace = "urn:winify-configuration-schema", ElementName = "Configuration")] |
|
9 | public class Configuration : INotifyPropertyChanged |
9 | public class Configuration : INotifyPropertyChanged |
|
10 | { |
10 | { |
|
11 | private bool _launchOnBoot; |
11 | private bool _launchOnBoot; |
|
- | 12 | private bool _ignoreSelfSignedCertificates; |
||
12 | |
13 | |
|
13 | public bool LaunchOnBoot |
14 | public bool LaunchOnBoot |
|
14 | { |
15 | { |
|
15 | get => _launchOnBoot; |
16 | get => _launchOnBoot; |
|
16 | set |
17 | set |
|
17 | { |
18 | { |
|
18 | if (value == _launchOnBoot) return; |
19 | if (value == _launchOnBoot) return; |
|
19 | _launchOnBoot = value; |
20 | _launchOnBoot = value; |
|
20 | OnPropertyChanged(); |
21 | OnPropertyChanged(); |
|
- | 22 | } |
||
- | 23 | } |
||
- | 24 | |
||
- | 25 | public bool IgnoreSelfSignedCertificates |
||
- | 26 | { |
||
- | 27 | get => _ignoreSelfSignedCertificates; |
||
- | 28 | set |
||
- | 29 | { |
||
- | 30 | if (value == _ignoreSelfSignedCertificates) return; |
||
- | 31 | _ignoreSelfSignedCertificates = value; |
||
- | 32 | OnPropertyChanged(); |
||
21 | } |
33 | } |
|
22 | } |
34 | } |
|
23 | |
35 | |
|
24 | public event PropertyChangedEventHandler PropertyChanged; |
36 | public event PropertyChangedEventHandler PropertyChanged; |
|
25 | |
37 | |
|
26 | [NotifyPropertyChangedInvocator] |
38 | [NotifyPropertyChangedInvocator] |
|
27 | protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null) |
39 | protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null) |
|
28 | { |
40 | { |
|
29 | PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); |
41 | PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); |
|
30 | } |
42 | } |
|
31 | } |
43 | } |
|
32 | } |
44 | } |
|
33 | |
45 | |
|
34 |
|
46 |
|
|
35 | |
47 | |
|
36 | |
48 | |
|
37 | |
49 | |