HamBook – Blame information for rev 54

Subversion Repositories:
Rev:
Rev Author Line No. Line
54 office 1 using System.ComponentModel;
10 office 2 using System.Runtime.CompilerServices;
54 office 3 using Configuration.Annotations;
10 office 4  
5 namespace Configuration
6 {
7 public class Audio : INotifyPropertyChanged
8 {
9 private string _inputDeviceFriendlyName = string.Empty;
10 private string _outputDeviceFriendlyName = string.Empty;
11  
12 public string InputDeviceFriendlyName
13 {
14 get => _inputDeviceFriendlyName;
15 set
16 {
54 office 17 if (value == _inputDeviceFriendlyName) return;
10 office 18  
19 _inputDeviceFriendlyName = value;
20 OnPropertyChanged();
21 }
22 }
23  
24 public string OutputDeviceFriendlyName
25 {
26 get => _outputDeviceFriendlyName;
27 set
28 {
54 office 29 if (value == _outputDeviceFriendlyName) return;
10 office 30  
31 _outputDeviceFriendlyName = value;
32 OnPropertyChanged();
33 }
34 }
35  
12 office 36 public event PropertyChangedEventHandler PropertyChanged;
37  
10 office 38 [NotifyPropertyChangedInvocator]
39 protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
40 {
41 PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
42 }
43 }
54 office 44 }