Пример #1
0
        internal void AddCommand(Commands.CommandInterface command)
        {
            int    curScriptIndex = treeViewMain.SelectedNode.Index;
            Script currentScript  = mScripts[curScriptIndex];

            currentScript.AddCommand(command);
            UpdateText();
        }
Пример #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;
        }
Пример #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;
        }
Пример #4
0
        public void DeleteCommand(Commands.CommandInterface command)
        {
            this.mCommands.Remove(command);

            return;
        }
Пример #5
0
 public void EditCommand(Commands.CommandInterface command)
 {
     return;
 }
Пример #6
0
        public void AddCommand(Commands.CommandInterface command)
        {
            this.mCommands.Add(command);

            return;
        }