Beispiel #1
0
    //撤销后退栈取出   后退栈压入
    public void CancleCommand()
    {
        if (cancleCommands.Count != 0)
        {
            BaseCommand command = cancleCommands.Pop();
            command.CancleCommand();

            backCommands.Push(command);
        }
    }