Beispiel #1
0
        /// <summary>
        /// Execute a command in the undo sequence. Used for Redo
        /// </summary>
        /// <param name="slot">Which command</param>
        /// <param name="arg1">First argument to be passed</param>
        /// <param name="arg2">Second argument to be passed</param>
        public void executeCommand(int slot, object arg1, object arg2)
        {
            Icommand c = (Icommand)commands[slot];

            c.execute();
            lastExecuted = c;
        }
Beispiel #2
0
 /// <summary>
 /// Executes command and adds it to the undo queue.
 /// </summary>
 /// <param name="c"></param>
 public void executeCommand(Icommand c)
 {
     c.execute();
     this.lastExecuted = c;
 }