Winify – Blame information for rev 75

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;
59 office 16 private int _retrievePastNotificationHours;
75 office 17 private byte[] _chime;
30 office 18  
19 public bool LaunchOnBoot
20 {
21 get => _launchOnBoot;
22 set
23 {
24 if (value == _launchOnBoot) return;
25 _launchOnBoot = value;
26 OnPropertyChanged();
27 }
28 }
29  
44 office 30 public bool IgnoreSelfSignedCertificates
31 {
32 get => _ignoreSelfSignedCertificates;
33 set
34 {
35 if (value == _ignoreSelfSignedCertificates) return;
36 _ignoreSelfSignedCertificates = value;
37 OnPropertyChanged();
38 }
39 }
40  
55 office 41 public int ToastDuration
42 {
43 get => _toastDuration;
44 set
45 {
46 if (value == _toastDuration) return;
47 _toastDuration = value;
48 OnPropertyChanged();
49 }
50 }
51  
52 public bool InfiniteToastDuration
53 {
54 get => _infiniteToastDuration;
55 set
56 {
57 if (value == _infiniteToastDuration) return;
58 _infiniteToastDuration = value;
59 OnPropertyChanged();
60 }
61 }
62  
59 office 63 public int RetrievePastNotificationHours
64 {
65 get => _retrievePastNotificationHours;
66 set
67 {
68 if (value == _retrievePastNotificationHours) return;
69 _retrievePastNotificationHours = value;
70 OnPropertyChanged();
71 }
72 }
73  
50 office 74 public Proxy Proxy
75 {
76 get => _proxy;
77 set
78 {
79 if (Equals(value, _proxy)) return;
80 _proxy = value;
81 OnPropertyChanged();
82 }
83 }
84  
75 office 85 public byte[] Chime
86 {
87 get => _chime;
88 set
89 {
90 if (Equals(value, _proxy)) return;
91 _chime = value;
92 OnPropertyChanged();
93 }
94 }
95  
50 office 96 [UsedImplicitly]
97 public Configuration()
98 {
99  
100 }
101  
30 office 102 public event PropertyChangedEventHandler PropertyChanged;
103  
104 [NotifyPropertyChangedInvocator]
105 protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
106 {
107 PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
108 }
109 }
110 }