示例#1
0
 public void EndCompoundCommand()
 {
     if (IsInCompoundMode && tempCompoundCommand.IsInCompoundMode)
     {
         tempCompoundCommand.EndCompoundCommand();
     }
     else
     {
         if (tempCompoundCommand.Count > 0)
         {
             commands.Push(tempCompoundCommand);
         }
         tempCompoundCommand = null;
     }
 }
示例#2
0
 public void EndCompoundCommand()
 {
     if (IsInCompoundMode && tempCompoundCommand.IsInCompoundMode)
     {
         tempCompoundCommand.EndCompoundCommand();
     }
     else
     {
         redoStack.Clear();
         if (tempCompoundCommand.Count > 0)
         {
             undoStack.Push(tempCompoundCommand);
         }
         tempCompoundCommand = null;
     }
 }