Winify – Blame information for rev 44
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
30 | 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:winify-configuration-schema", ElementName = "Configuration")] |
||
9 | public class Configuration : INotifyPropertyChanged |
||
10 | { |
||
11 | private bool _launchOnBoot; |
||
44 | office | 12 | private bool _ignoreSelfSignedCertificates; |
30 | office | 13 | |
14 | public bool LaunchOnBoot |
||
15 | { |
||
16 | get => _launchOnBoot; |
||
17 | set |
||
18 | { |
||
19 | if (value == _launchOnBoot) return; |
||
20 | _launchOnBoot = value; |
||
21 | OnPropertyChanged(); |
||
22 | } |
||
23 | } |
||
24 | |||
44 | office | 25 | public bool IgnoreSelfSignedCertificates |
26 | { |
||
27 | get => _ignoreSelfSignedCertificates; |
||
28 | set |
||
29 | { |
||
30 | if (value == _ignoreSelfSignedCertificates) return; |
||
31 | _ignoreSelfSignedCertificates = value; |
||
32 | OnPropertyChanged(); |
||
33 | } |
||
34 | } |
||
35 | |||
30 | office | 36 | public event PropertyChangedEventHandler PropertyChanged; |
37 | |||
38 | [NotifyPropertyChangedInvocator] |
||
39 | protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null) |
||
40 | { |
||
41 | PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); |
||
42 | } |
||
43 | } |
||
44 | } |