HamBook – Blame information for rev 5

Subversion Repositories:
Rev:
Rev Author Line No. Line
5 office 1 using Configuration.Annotations;
2 using System;
3 using System.Collections.Generic;
4 using System.ComponentModel;
5 using System.Linq;
6 using System.Runtime.CompilerServices;
7 using System.Text;
8 using System.Threading.Tasks;
9 using System.Xml.Linq;
10  
11 namespace Configuration
12 {
13 public class Band : INotifyPropertyChanged
14 {
15 private int _min;
16 private int _max;
17 private int _meters;
18  
19 public int Meters
20 {
21 get => _meters;
22 set
23 {
24 if (value == _meters)
25 {
26 return;
27 }
28  
29 _meters = value;
30 OnPropertyChanged();
31 }
32 }
33  
34 public int Min
35 {
36 get => _min;
37 set
38 {
39 if (value == _min)
40 {
41 return;
42 }
43  
44 _min = value;
45 OnPropertyChanged();
46 }
47 }
48  
49 public int Max
50 {
51 get => _max;
52 set
53 {
54 if (value == _max)
55 {
56 return;
57 }
58  
59 _max = value;
60 OnPropertyChanged();
61 }
62 }
63  
64 public event PropertyChangedEventHandler PropertyChanged;
65  
66 [NotifyPropertyChangedInvocator]
67 protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
68 {
69 PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
70 }
71 }
72 }