Esempio n. 1
0
        internal void AddCommand(Commands.CommandInterface command)
        {
            int    curScriptIndex = treeViewMain.SelectedNode.Index;
            Script currentScript  = mScripts[curScriptIndex];

            currentScript.AddCommand(command);
            UpdateText();
        }
Esempio n. 2
0
        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;
        }
Esempio n. 3
0
        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;
        }
Esempio n. 4
0
        public void DeleteCommand(Commands.CommandInterface command)
        {
            this.mCommands.Remove(command);

            return;
        }
Esempio n. 5
0
 public void EditCommand(Commands.CommandInterface command)
 {
     return;
 }
Esempio n. 6
0
        public void AddCommand(Commands.CommandInterface command)
        {
            this.mCommands.Add(command);

            return;
        }