HamBook – Blame information for rev 54

Subversion Repositories:
Rev:
Rev Author Line No. Line
54 office 1 using System.ComponentModel;
14 office 2 using System.Runtime.CompilerServices;
54 office 3 using Configuration.Annotations;
14 office 4  
5 namespace Configuration
6 {
7 public class Spectrogram : INotifyPropertyChanged
8 {
54 office 9 private int _audioBufferTimespan = 20;
10 private int _fftSamples = 1024;
11 private bool _pinToDesktop;
14 office 12 private int _sampleRate = 8192;
13 private int _spectrumIntensity = 5;
14  
15 public bool PinToDesktop
16 {
17 get => _pinToDesktop;
18 set
19 {
54 office 20 if (value == _pinToDesktop) return;
14 office 21  
22 _pinToDesktop = value;
23 OnPropertyChanged();
24 }
25 }
26  
27 public int SampleRate
28 {
29 get => _sampleRate;
30 set
31 {
54 office 32 if (value == _sampleRate) return;
14 office 33  
34 _sampleRate = value;
35 OnPropertyChanged();
36 }
37 }
38  
39 public int SpectrumIntensity
40 {
41 get => _spectrumIntensity;
42 set
43 {
54 office 44 if (value == _spectrumIntensity) return;
14 office 45  
46 _spectrumIntensity = value;
47 OnPropertyChanged();
48 }
49 }
50  
54 office 51 public int FftSamples
14 office 52 {
53 get => _fftSamples;
54 set
55 {
54 office 56 if (value == _fftSamples) return;
14 office 57  
58 _fftSamples = value;
59 OnPropertyChanged();
60 }
61 }
62  
63 public int AudioBufferTimespan
64 {
65 get => _audioBufferTimespan;
66 set
67 {
54 office 68 if (value == _audioBufferTimespan) return;
14 office 69  
70 _audioBufferTimespan = value;
71 OnPropertyChanged();
72 }
73 }
74  
75 public event PropertyChangedEventHandler PropertyChanged;
76  
77 [NotifyPropertyChangedInvocator]
78 protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
79 {
80 PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
81 }
82 }
54 office 83 }