Winify – Blame information for rev 50
?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; |
50 | office | 13 | private Proxy _proxy = new Proxy(); |
30 | office | 14 | |
15 | public bool LaunchOnBoot |
||
16 | { |
||
17 | get => _launchOnBoot; |
||
18 | set |
||
19 | { |
||
20 | if (value == _launchOnBoot) return; |
||
21 | _launchOnBoot = value; |
||
22 | OnPropertyChanged(); |
||
23 | } |
||
24 | } |
||
25 | |||
44 | office | 26 | public bool IgnoreSelfSignedCertificates |
27 | { |
||
28 | get => _ignoreSelfSignedCertificates; |
||
29 | set |
||
30 | { |
||
31 | if (value == _ignoreSelfSignedCertificates) return; |
||
32 | _ignoreSelfSignedCertificates = value; |
||
33 | OnPropertyChanged(); |
||
34 | } |
||
35 | } |
||
36 | |||
50 | office | 37 | public Proxy Proxy |
38 | { |
||
39 | get => _proxy; |
||
40 | set |
||
41 | { |
||
42 | if (Equals(value, _proxy)) return; |
||
43 | _proxy = value; |
||
44 | OnPropertyChanged(); |
||
45 | } |
||
46 | } |
||
47 | |||
48 | [UsedImplicitly] |
||
49 | public Configuration() |
||
50 | { |
||
51 | |||
52 | } |
||
53 | |||
30 | office | 54 | public event PropertyChangedEventHandler PropertyChanged; |
55 | |||
56 | [NotifyPropertyChangedInvocator] |
||
57 | protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null) |
||
58 | { |
||
59 | PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); |
||
60 | } |
||
61 | } |
||
62 | } |