HamBook – Diff between revs 12 and 54
?pathlinks?
Rev 12 | 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 Audio : INotifyPropertyChanged |
7 | public class Audio : INotifyPropertyChanged |
|
Line 17... | Line 12... | |||
17 | public string InputDeviceFriendlyName |
12 | public string InputDeviceFriendlyName |
|
18 | { |
13 | { |
|
19 | get => _inputDeviceFriendlyName; |
14 | get => _inputDeviceFriendlyName; |
|
20 | set |
15 | set |
|
21 | { |
16 | { |
|
22 | if (value == _inputDeviceFriendlyName) |
17 | if (value == _inputDeviceFriendlyName) return; |
|
23 | { |
- | ||
24 | return; |
- | ||
25 | } |
- | ||
Line 26... | Line 18... | |||
26 | |
18 | |
|
27 | _inputDeviceFriendlyName = value; |
19 | _inputDeviceFriendlyName = value; |
|
28 | OnPropertyChanged(); |
20 | OnPropertyChanged(); |
|
29 | } |
21 | } |
|
Line 32... | Line 24... | |||
32 | public string OutputDeviceFriendlyName |
24 | public string OutputDeviceFriendlyName |
|
33 | { |
25 | { |
|
34 | get => _outputDeviceFriendlyName; |
26 | get => _outputDeviceFriendlyName; |
|
35 | set |
27 | set |
|
36 | { |
28 | { |
|
37 | if (value == _outputDeviceFriendlyName) |
29 | if (value == _outputDeviceFriendlyName) return; |
|
38 | { |
- | ||
39 | return; |
- | ||
40 | } |
- | ||
Line 41... | Line 30... | |||
41 | |
30 | |
|
42 | _outputDeviceFriendlyName = value; |
31 | _outputDeviceFriendlyName = value; |
|
43 | OnPropertyChanged(); |
32 | OnPropertyChanged(); |
|
44 | } |
33 | } |
|
Line 50... | Line 39... | |||
50 | protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null) |
39 | protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null) |
|
51 | { |
40 | { |
|
52 | PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); |
41 | PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); |
|
53 | } |
42 | } |
|
54 | } |
43 | } |
|
55 | } |
44 | } |
|
56 | |
45 | |