Exemplo n.º 1
0
        public SystemModel() : base()
        {
            Setup       = new SettingsSystemSetupModel();
            InputOutput = new SettingsSystemInputOutputModel();
            USB         = new SettingsSystemUSBModel();
            MIDI        = new SettingsSystemMIDIModel();

            #region DefaultMemory
            Track1 = new SettingsMemoryTrackModel();
            Track2 = new SettingsMemoryTrackModel();
            Track3 = new SettingsMemoryTrackModel();
            Track4 = new SettingsMemoryTrackModel();
            Track5 = new SettingsMemoryTrackModel();

            Rhythm     = new SettingsMemoryRhythmModel();
            Name       = new SettingsMemoryNameModel();
            Master     = new SettingsMemoryMasterModel();
            RecOption  = new SettingsMemoryRecOptionModel();
            PlayOption = new SettingsMemoryPlayOptionModel();

            Assign1  = new SettingsMemoryAssignModel();
            Assign2  = new SettingsMemoryAssignModel();
            Assign3  = new SettingsMemoryAssignModel();
            Assign4  = new SettingsMemoryAssignModel();
            Assign5  = new SettingsMemoryAssignModel();
            Assign6  = new SettingsMemoryAssignModel();
            Assign7  = new SettingsMemoryAssignModel();
            Assign8  = new SettingsMemoryAssignModel();
            Assign9  = new SettingsMemoryAssignModel();
            Assign10 = new SettingsMemoryAssignModel();
            Assign11 = new SettingsMemoryAssignModel();
            Assign12 = new SettingsMemoryAssignModel();
            Assign13 = new SettingsMemoryAssignModel();
            Assign14 = new SettingsMemoryAssignModel();
            Assign15 = new SettingsMemoryAssignModel();
            Assign16 = new SettingsMemoryAssignModel();

            InputFx = new SettingsMemoryInputFxModel();
            TrackFx = new SettingsMemoryTrackFxModel();

            BeatFxA = new SettingsMemoryBeatFxModel();
            BeatFxB = new SettingsMemoryBeatFxModel();
            BeatFxC = new SettingsMemoryBeatFxModel();

            InputFxA = new SettingsMemoryFxModel();
            InputFxB = new SettingsMemoryFxModel();
            InputFxC = new SettingsMemoryFxModel();

            TrackFxA = new SettingsMemoryFxModel();
            TrackFxB = new SettingsMemoryFxModel();
            TrackFxC = new SettingsMemoryFxModel();
            #endregion DefaultMemory
        }
        public SettingsMemoryAssignViewModel(int assignNumber, SettingsMemoryAssignModel model)
            : base(model)
        {
            AssignNumber = assignNumber;

            Enabled    = new PropertyBoolViewModel(nameof(model.Enabled), PropertySet);
            Source     = new PropertyEnumComboViewModel <AssignSource>(nameof(model.Source), PropertySet);
            SourceMode = new PropertyEnumRadioViewModel <AssignSourceMode>(nameof(model.SourceMode), PropertySet);
            Target     = new PropertyEnumComboViewModel <AssignTarget>(nameof(model.Target), PropertySet);
            TargetMin  = new PropertyIntViewModel(nameof(model.TargetMin), PropertySet, new IntTargetConverter());
            TargetMax  = new PropertyIntViewModel(nameof(model.TargetMax), PropertySet, new IntTargetConverter());
        }