Winify – Blame information for rev 30

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;
12  
13 public bool LaunchOnBoot
14 {
15 get => _launchOnBoot;
16 set
17 {
18 if (value == _launchOnBoot) return;
19 _launchOnBoot = value;
20 OnPropertyChanged();
21 }
22 }
23  
24 public event PropertyChangedEventHandler PropertyChanged;
25  
26 [NotifyPropertyChangedInvocator]
27 protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
28 {
29 PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
30 }
31 }
32 }