Mark van Renswoude
28c25c8b43
Implemented mute/unmute input and output actions Changed MockDevice to EmulatorDevice with UI for easier testing
29 lines
861 B
C#
29 lines
861 B
C#
using MassiveKnob.Plugin.CoreAudio.Base;
|
|
|
|
namespace MassiveKnob.Plugin.CoreAudio.GetMuted
|
|
{
|
|
public class DeviceGetMutedActionSettingsViewModel : BaseDeviceSettingsViewModel<DeviceGetMutedActionSettings>
|
|
{
|
|
// ReSharper disable UnusedMember.Global - used by WPF Binding
|
|
public bool Inverted
|
|
{
|
|
get => Settings.Inverted;
|
|
set
|
|
{
|
|
if (value == Settings.Inverted)
|
|
return;
|
|
|
|
Settings.Inverted = value;
|
|
OnPropertyChanged();
|
|
}
|
|
}
|
|
// ReSharper restore UnusedMember.Global
|
|
|
|
|
|
// ReSharper disable once SuggestBaseTypeForParameter - by design
|
|
public DeviceGetMutedActionSettingsViewModel(DeviceGetMutedActionSettings settings) : base(settings)
|
|
{
|
|
}
|
|
}
|
|
}
|