public SettingsMemoryMasterViewModel(SettingsMemoryMasterModel model)
     : base(model)
 {
     Level           = new PropertyIntViewModel(nameof(model.Level), PropertySet, new IntLevelConverter());
     Tempo           = new PropertyFloatViewModel(nameof(model.Tempo), PropertySet, new FloatTempoConverter());
     Compressor      = new PropertyIntViewModel(nameof(model.Compressor), PropertySet, new IntDbConverter());
     Reverb          = new PropertyIntViewModel(nameof(model.Reverb), PropertySet);
     PhonesOut       = new PropertyEnumRadioViewModel <MasterPhonesOut>(nameof(model.PhonesOut), PropertySet);
     PhonesOutTracks = new PropertyBitwiseViewModel <TrackBitwise>(nameof(model.PhonesOutTracks), PropertySet, new TrackBitwiseToNumberConverter());
 }
 public SettingsMemoryPlayOptionViewModel(SettingsMemoryPlayOptionModel model)
     : base(model)
 {
     SinglePlayChange = new PropertyEnumRadioViewModel <PlayOptionSinglePlayChange>(nameof(model.SinglePlayChange), PropertySet);
     LoopQuantize     = new PropertyEnumRadioViewModel <PlayOptionLoopQuantize>(nameof(model.LoopQuantize), PropertySet);
     LoopMode         = new PropertyEnumRadioViewModel <PlayOptionLoopMode>(nameof(model.LoopMode), PropertySet);
     LoopLength       = new PropertyIntViewModel(nameof(model.LoopLength), PropertySet);
     AllStart         = new PropertyBitwiseViewModel <TrackBitwise>(nameof(model.AllStart), PropertySet, new TrackBitwiseToNumberConverter());
     AllStop          = new PropertyBitwiseViewModel <TrackBitwise>(nameof(model.AllStop), PropertySet, new TrackBitwiseToNumberConverter());
     FadeTime         = new PropertyIntViewModel(nameof(model.FadeTime), PropertySet);
     TargetTrack      = new PropertyEnumComboViewModel <Track>(nameof(model.TargetTrack), PropertySet);
 }
Exemple #3
0
 public SettingsMemoryTrackFxViewModel(SettingsMemoryTrackFxModel model)
     : base(model)
 {
     Mode = new PropertyEnumRadioViewModel <FxMode>(nameof(model.Mode), PropertySet);
     SingleEnabledFxSlot = new PropertyEnumRadioViewModel <FxSlotOrNone>(nameof(model.SingleEnabledFxSlot), PropertySet);
     SelectedFxSlot      = new PropertyEnumRadioViewModel <FxSlot>(nameof(model.SelectedFxSlot), PropertySet);
     SelectedSingleFxA   = new PropertyEnumComboViewModel <SingleTrackFx>(nameof(model.SelectedSingleFxA), PropertySet);
     SelectedSingleFxB   = new PropertyEnumComboViewModel <SingleTrackFx>(nameof(model.SelectedSingleFxB), PropertySet);
     SelectedSingleFxC   = new PropertyEnumComboViewModel <SingleTrackFx>(nameof(model.SelectedSingleFxC), PropertySet);
     MultiEnabledFxSlot  = new PropertyBitwiseViewModel <FxSlotBitwise>(nameof(model.MultiEnabledFxSlot), PropertySet, new FxSlotBitwiseToLetterConverter());
     SelectedMultiFxA    = new PropertyEnumComboViewModel <MultiTrackFxA>(nameof(model.SelectedMultiFxA), PropertySet);
     SelectedMultiFxB    = new PropertyEnumComboViewModel <MultiTrackFxB>(nameof(model.SelectedMultiFxB), PropertySet);
     SelectedMultiFxC    = new PropertyEnumComboViewModel <MultiTrackFxC>(nameof(model.SelectedMultiFxC), PropertySet);
 }