HamBook – Diff between revs 14 and 54
?pathlinks?
Rev 14 | Rev 54 | |||
---|---|---|---|---|
Line 1... | Line -... | |||
1 | using Configuration.Annotations; |
- | ||
2 | using System; |
- | ||
3 | using System.Collections.Generic; |
- | ||
4 | using System.ComponentModel; |
1 | using System.ComponentModel; |
|
5 | using System.Linq; |
- | ||
6 | using System.Runtime.CompilerServices; |
2 | using System.Runtime.CompilerServices; |
|
7 | using System.Text; |
- | ||
8 | using System.Threading.Tasks; |
3 | using Configuration.Annotations; |
|
Line 9... | Line 4... | |||
9 | |
4 | |
|
10 | namespace Configuration |
5 | namespace Configuration |
|
11 | { |
6 | { |
|
12 | public class Visualisations : INotifyPropertyChanged |
7 | public class Visualisations : INotifyPropertyChanged |
|
Line 16... | Line 11... | |||
16 | public Spectrogram Spectrogram |
11 | public Spectrogram Spectrogram |
|
17 | { |
12 | { |
|
18 | get => _spectrogram; |
13 | get => _spectrogram; |
|
19 | set |
14 | set |
|
20 | { |
15 | { |
|
21 | if (value == _spectrogram) |
16 | if (value == _spectrogram) return; |
|
22 | { |
- | ||
23 | return; |
- | ||
24 | } |
- | ||
Line 25... | Line 17... | |||
25 | |
17 | |
|
Line 26... | Line 18... | |||
26 | _spectrogram = value; |
18 | _spectrogram = value; |
|
27 | |
19 | |
|
28 | OnPropertyChanged(); |
20 | OnPropertyChanged(); |
|
Line 29... | Line -... | |||
29 | } |
- | ||
30 | } |
- | ||
31 | |
- | ||
32 | public Visualisations() |
- | ||
33 | { |
21 | } |
|
Line 34... | Line 22... | |||
34 | } |
22 | } |
|
35 | |
23 | |
|
36 | public event PropertyChangedEventHandler PropertyChanged; |
24 | public event PropertyChangedEventHandler PropertyChanged; |
|
37 | |
25 | |
|
38 | [NotifyPropertyChangedInvocator] |
26 | [NotifyPropertyChangedInvocator] |
|
39 | protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null) |
27 | protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null) |
|
40 | { |
28 | { |
|
41 | PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); |
29 | PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); |