HamBook – Blame information for rev 32

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