using System.ComponentModel; using System.Runtime.CompilerServices; using Configuration.Annotations; namespace Configuration { public class Band : INotifyPropertyChanged { private decimal _max; private int _meters; private decimal _min; public int Meters { get => _meters; set { if (value == _meters) return; _meters = value; OnPropertyChanged(); } } public decimal Min { get => _min; set { if (value == _min) return; _min = value; OnPropertyChanged(); } } public decimal Max { get => _max; set { if (value == _max) return; _max = value; OnPropertyChanged(); } } public event PropertyChangedEventHandler PropertyChanged; [NotifyPropertyChangedInvocator] protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null) { PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); } } }