HamBook – Diff between revs 32 and 54

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 32 Rev 54
Line 1... Line -...
1 using Configuration.Annotations; -  
2 using System; -  
3 using System.Collections.Concurrent; -  
4 using System.Collections.Generic; -  
5 using System.ComponentModel; 1 using System.ComponentModel;
6 using System.Linq; -  
7 using System.Runtime.CompilerServices; 2 using System.Runtime.CompilerServices;
8 using System.Text; -  
9 using System.Threading.Tasks; 3 using Configuration.Annotations;
Line 10... Line 4...
10   4  
11 namespace Configuration 5 namespace Configuration
12 { 6 {
13 public class Navigation : INotifyPropertyChanged 7 public class Navigation : INotifyPropertyChanged
Line 18... Line 12...
18 public int FrequencyStep 12 public int FrequencyStep
19 { 13 {
20 get => _frequencyStep; 14 get => _frequencyStep;
21 set 15 set
22 { 16 {
23 if (value == _frequencyStep) 17 if (value == _frequencyStep) return;
24 { -  
25 return; -  
26 } -  
Line 27... Line 18...
27   18  
28 _frequencyStep = value; 19 _frequencyStep = value;
29 OnPropertyChanged(); 20 OnPropertyChanged();
30 } 21 }
Line 33... Line 24...
33 public bool MouseScrollSound 24 public bool MouseScrollSound
34 { 25 {
35 get => _mouseScrollSound; 26 get => _mouseScrollSound;
36 set 27 set
37 { 28 {
38 if (value == _mouseScrollSound) 29 if (value == _mouseScrollSound) return;
39 { -  
40 return; -  
41 } -  
Line 42... Line 30...
42   30  
43 _mouseScrollSound = value; 31 _mouseScrollSound = value;
44 OnPropertyChanged(); 32 OnPropertyChanged();
45 } 33 }
Line 46... Line -...
46 } -  
47   -  
48 public Navigation() -  
49 { -  
50   -  
51 } 34 }
Line 52... Line 35...
52   35  
53 public event PropertyChangedEventHandler PropertyChanged; 36 public event PropertyChangedEventHandler PropertyChanged;
54   37  
55 [NotifyPropertyChangedInvocator] 38 [NotifyPropertyChangedInvocator]
56 protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null) 39 protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
57 { 40 {
58 PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); 41 PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
59 } 42 }