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 SetAction(SceneMidiPlayer pScenePlayer) { mScenePlayer = pScenePlayer; this.fullTreeCtrl1.Reset(); this.fullTreeCtrl1.SelectedScene = pScenePlayer.Scene; this.fullTreeCtrl1.LoadTree(); if (pScenePlayer.Scene != null) { this.textBox1.Text = mScenePlayer.Scene.Path; } else { this.textBox1.Text = ""; } }