HamBook – Rev 10
?pathlinks?
using Configuration.Annotations;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
namespace Configuration
{
public class Audio : INotifyPropertyChanged
{
private string _inputDeviceFriendlyName = string.Empty;
private string _outputDeviceFriendlyName = string.Empty;
public event PropertyChangedEventHandler PropertyChanged;
public string InputDeviceFriendlyName
{
get => _inputDeviceFriendlyName;
set
{
if (value == _inputDeviceFriendlyName)
{
return;
}
_inputDeviceFriendlyName = value;
OnPropertyChanged();
}
}
public string OutputDeviceFriendlyName
{
get => _outputDeviceFriendlyName;
set
{
if (value == _outputDeviceFriendlyName)
{
return;
}
_outputDeviceFriendlyName = value;
OnPropertyChanged();
}
}
[NotifyPropertyChangedInvocator]
protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
}
}