HamBook – Blame information for rev 10
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
10 | office | 1 | using Configuration.Annotations; |
2 | using System; |
||
3 | using System.Collections.Generic; |
||
4 | using System.ComponentModel; |
||
5 | using System.Linq; |
||
6 | using System.Runtime.CompilerServices; |
||
7 | using System.Text; |
||
8 | using System.Threading.Tasks; |
||
9 | |||
10 | namespace Configuration |
||
11 | { |
||
12 | public class Audio : INotifyPropertyChanged |
||
13 | { |
||
14 | private string _inputDeviceFriendlyName = string.Empty; |
||
15 | private string _outputDeviceFriendlyName = string.Empty; |
||
16 | |||
17 | public event PropertyChangedEventHandler PropertyChanged; |
||
18 | |||
19 | public string InputDeviceFriendlyName |
||
20 | { |
||
21 | get => _inputDeviceFriendlyName; |
||
22 | set |
||
23 | { |
||
24 | if (value == _inputDeviceFriendlyName) |
||
25 | { |
||
26 | return; |
||
27 | } |
||
28 | |||
29 | _inputDeviceFriendlyName = value; |
||
30 | OnPropertyChanged(); |
||
31 | } |
||
32 | } |
||
33 | |||
34 | public string OutputDeviceFriendlyName |
||
35 | { |
||
36 | get => _outputDeviceFriendlyName; |
||
37 | set |
||
38 | { |
||
39 | if (value == _outputDeviceFriendlyName) |
||
40 | { |
||
41 | return; |
||
42 | } |
||
43 | |||
44 | _outputDeviceFriendlyName = value; |
||
45 | OnPropertyChanged(); |
||
46 | } |
||
47 | } |
||
48 | |||
49 | [NotifyPropertyChangedInvocator] |
||
50 | protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null) |
||
51 | { |
||
52 | PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); |
||
53 | } |
||
54 | } |
||
55 | } |