private void btn_Add_Click(object sender, EventArgs e) { DmxFramework.Midi.Action.Action NewAction = null; if (this.cmb_AddAction.SelectedIndex == 0) { NewAction = new ChangeDmxValue(); } else if (this.cmb_AddAction.SelectedIndex == 1) { NewAction = new SceneMidiPlayer(); } else if (this.cmb_AddAction.SelectedIndex == 2) { NewAction = new AutoSpeed(); } else if (this.cmb_AddAction.SelectedIndex == 3) { NewAction = new AutoPress(); } else if (this.cmb_AddAction.SelectedIndex == 4) { NewAction = new SceneSpeed(); } if (NewAction != null) { mAction.Actions.Add(NewAction); this.list_Action.Items.Add(NewAction); } }
public void LoadTime(AutoSpeed pAutoSpeed) { mAutoPress = null; mAutoSpeed = pAutoSpeed; this.grp_Preset.Visible = false; LoadCombo(); this.comboBox1.SelectedIndex = mAutoSpeed.AutoModeNum; }
public void LoadPresetBtn(AutoPress pAutoPress) { mAutoPress = pAutoPress; mAutoSpeed = null; this.grp_Preset.Visible = true; LoadCombo(); this.comboBox1.SelectedIndex = mAutoPress.AutoModeNum; this.radio_1.Checked = (mAutoPress.PresetNum == 0); this.radio_2.Checked = (mAutoPress.PresetNum == 1); }