HamBook – Blame information for rev 21

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 {
21 office 15 private decimal _min = 0;
16 private decimal _max = 0;
12 office 17 private int _meters = 0;
5 office 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  
21 office 34 public decimal Min
5 office 35 {
36 get => _min;
37 set
38 {
39 if (value == _min)
40 {
41 return;
42 }
43  
44 _min = value;
45 OnPropertyChanged();
46 }
47 }
48  
21 office 49 public decimal Max
5 office 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  
12 office 66 public Band()
67 {
68 }
69  
5 office 70 [NotifyPropertyChangedInvocator]
71 protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
72 {
73 PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
74 }
75 }
76 }