HamBook – Rev 12
?pathlinks?
using Configuration.Annotations;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;
namespace Configuration
{
public class Band : INotifyPropertyChanged
{
private int _min = 0;
private int _max = 0;
private int _meters = 0;
public int Meters
{
get => _meters;
set
{
if (value == _meters)
{
return;
}
_meters = value;
OnPropertyChanged();
}
}
public int Min
{
get => _min;
set
{
if (value == _min)
{
return;
}
_min = value;
OnPropertyChanged();
}
}
public int Max
{
get => _max;
set
{
if (value == _max)
{
return;
}
_max = value;
OnPropertyChanged();
}
}
public event PropertyChangedEventHandler PropertyChanged;
public Band()
{
}
[NotifyPropertyChangedInvocator]
protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
}
}