HamBook – Blame information for rev 12

Subversion Repositories:
Rev:
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 string InputDeviceFriendlyName
18 {
19 get => _inputDeviceFriendlyName;
20 set
21 {
22 if (value == _inputDeviceFriendlyName)
23 {
24 return;
25 }
26  
27 _inputDeviceFriendlyName = value;
28 OnPropertyChanged();
29 }
30 }
31  
32 public string OutputDeviceFriendlyName
33 {
34 get => _outputDeviceFriendlyName;
35 set
36 {
37 if (value == _outputDeviceFriendlyName)
38 {
39 return;
40 }
41  
42 _outputDeviceFriendlyName = value;
43 OnPropertyChanged();
44 }
45 }
46  
12 office 47 public event PropertyChangedEventHandler PropertyChanged;
48  
10 office 49 [NotifyPropertyChangedInvocator]
50 protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
51 {
52 PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
53 }
54 }
55 }