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