internal void AddCommand(Commands.CommandInterface command) { int curScriptIndex = treeViewMain.SelectedNode.Index; Script currentScript = mScripts[curScriptIndex]; currentScript.AddCommand(command); UpdateText(); }
public void MoveTargetDown(Commands.CommandInterface command) { int curIndex = this.mCommands.IndexOf(command); if (curIndex >= this.mCommands.Count - 1) { // already bottom of the list return; } this.mCommands.Reverse(curIndex, 2); return; }
public void MoveTargetUp(Commands.CommandInterface command) { int curIndex = this.mCommands.IndexOf(command); if (curIndex == 0) { // already top of list return; } this.mCommands.Reverse(curIndex - 1, 2); return; }
public void DeleteCommand(Commands.CommandInterface command) { this.mCommands.Remove(command); return; }
public void EditCommand(Commands.CommandInterface command) { return; }
public void AddCommand(Commands.CommandInterface command) { this.mCommands.Add(command); return; }