Winify

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 29  →  ?path2? @ 30
/trunk/Configuration/Configuration.cs
@@ -0,0 +1,32 @@
using System.ComponentModel;
using System.Runtime.CompilerServices;
using System.Xml.Serialization;
using Configuration.Annotations;
 
namespace Configuration
{
[XmlRoot(Namespace = "urn:winify-configuration-schema", ElementName = "Configuration")]
public class Configuration : INotifyPropertyChanged
{
private bool _launchOnBoot;
 
public bool LaunchOnBoot
{
get => _launchOnBoot;
set
{
if (value == _launchOnBoot) return;
_launchOnBoot = value;
OnPropertyChanged();
}
}
 
public event PropertyChangedEventHandler PropertyChanged;
 
[NotifyPropertyChangedInvocator]
protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
}
}