HamBook – Blame information for rev 54
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
54 | office | 1 | using System.ComponentModel; |
5 | office | 2 | using System.Runtime.CompilerServices; |
54 | office | 3 | using Configuration.Annotations; |
5 | office | 4 | |
5 | namespace Configuration |
||
6 | { |
||
7 | public class Band : INotifyPropertyChanged |
||
8 | { |
||
54 | office | 9 | private decimal _max; |
10 | private int _meters; |
||
11 | private decimal _min; |
||
5 | office | 12 | |
13 | public int Meters |
||
14 | { |
||
15 | get => _meters; |
||
16 | set |
||
17 | { |
||
54 | office | 18 | if (value == _meters) return; |
5 | office | 19 | |
20 | _meters = value; |
||
21 | OnPropertyChanged(); |
||
22 | } |
||
23 | } |
||
24 | |||
21 | office | 25 | public decimal Min |
5 | office | 26 | { |
27 | get => _min; |
||
28 | set |
||
29 | { |
||
54 | office | 30 | if (value == _min) return; |
5 | office | 31 | |
32 | _min = value; |
||
33 | OnPropertyChanged(); |
||
34 | } |
||
35 | } |
||
36 | |||
21 | office | 37 | public decimal Max |
5 | office | 38 | { |
39 | get => _max; |
||
40 | set |
||
41 | { |
||
54 | office | 42 | if (value == _max) return; |
5 | office | 43 | |
44 | _max = value; |
||
45 | OnPropertyChanged(); |
||
46 | } |
||
47 | } |
||
48 | |||
49 | public event PropertyChangedEventHandler PropertyChanged; |
||
50 | |||
51 | [NotifyPropertyChangedInvocator] |
||
52 | protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null) |
||
53 | { |
||
54 | PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); |
||
55 | } |
||
56 | } |
||
54 | office | 57 | } |