HamBook – Blame information for rev 54

Subversion Repositories:
Rev:
Rev Author Line No. Line
54 office 1 using System.ComponentModel;
21 office 2 using System.Runtime.CompilerServices;
54 office 3 using Configuration.Annotations;
21 office 4  
5 namespace Configuration
6 {
7 public class Navigation : INotifyPropertyChanged
8 {
9 private int _frequencyStep = 100;
32 office 10 private bool _mouseScrollSound = true;
21 office 11  
12 public int FrequencyStep
13 {
14 get => _frequencyStep;
15 set
16 {
54 office 17 if (value == _frequencyStep) return;
21 office 18  
19 _frequencyStep = value;
20 OnPropertyChanged();
21 }
22 }
23  
32 office 24 public bool MouseScrollSound
25 {
26 get => _mouseScrollSound;
27 set
28 {
54 office 29 if (value == _mouseScrollSound) return;
32 office 30  
31 _mouseScrollSound = value;
32 OnPropertyChanged();
33 }
34 }
35  
21 office 36 public event PropertyChangedEventHandler PropertyChanged;
37  
38 [NotifyPropertyChangedInvocator]
39 protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
40 {
41 PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
42 }
43 }
54 office 44 }