1
0
mirror of synced 2024-11-24 19:53:09 +01:00
MassiveKnob/Windows/MassiveKnob.Plugin.VoiceMeeter/GetParameter/VoiceMeeterGetParameterActionSettingsViewModel.cs

55 lines
1.5 KiB
C#
Raw Normal View History

using MassiveKnob.Plugin.VoiceMeeter.Base;
namespace MassiveKnob.Plugin.VoiceMeeter.GetParameter
{
public class VoiceMeeterGetParameterActionSettingsViewModel : BaseVoiceMeeterSettingsViewModel<VoiceMeeterGetParameterActionSettings>
{
// ReSharper disable UnusedMember.Global - used by WPF Binding
public string Parameter
{
get => Settings.Parameter;
set
{
if (value == Settings.Parameter)
return;
Settings.Parameter = value;
OnPropertyChanged();
}
}
public string Value
{
get => Settings.Value;
set
{
if (value == Settings.Value)
return;
Settings.Value = value;
OnPropertyChanged();
}
}
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 VoiceMeeterGetParameterActionSettingsViewModel(VoiceMeeterGetParameterActionSettings settings) : base(settings)
{
}
}
}