Winify – Blame information for rev 55

Subversion Repositories:
Rev:
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();
55 office 14 private int _toastDuration = 5000;
15 private bool _infiniteToastDuration;
30 office 16  
17 public bool LaunchOnBoot
18 {
19 get => _launchOnBoot;
20 set
21 {
22 if (value == _launchOnBoot) return;
23 _launchOnBoot = value;
24 OnPropertyChanged();
25 }
26 }
27  
44 office 28 public bool IgnoreSelfSignedCertificates
29 {
30 get => _ignoreSelfSignedCertificates;
31 set
32 {
33 if (value == _ignoreSelfSignedCertificates) return;
34 _ignoreSelfSignedCertificates = value;
35 OnPropertyChanged();
36 }
37 }
38  
55 office 39 public int ToastDuration
40 {
41 get => _toastDuration;
42 set
43 {
44 if (value == _toastDuration) return;
45 _toastDuration = value;
46 OnPropertyChanged();
47 }
48 }
49  
50 public bool InfiniteToastDuration
51 {
52 get => _infiniteToastDuration;
53 set
54 {
55 if (value == _infiniteToastDuration) return;
56 _infiniteToastDuration = value;
57 OnPropertyChanged();
58 }
59 }
60  
50 office 61 public Proxy Proxy
62 {
63 get => _proxy;
64 set
65 {
66 if (Equals(value, _proxy)) return;
67 _proxy = value;
68 OnPropertyChanged();
69 }
70 }
71  
72 [UsedImplicitly]
73 public Configuration()
74 {
75  
76 }
77  
30 office 78 public event PropertyChangedEventHandler PropertyChanged;
79  
80 [NotifyPropertyChangedInvocator]
81 protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
82 {
83 PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
84 }
85 }
86 }