public override void Undo (TextDocument doc) { doc.currentAtomicUndoOperationType.Push (operationType); for (int i = operations.Count - 1; i >= 0; i--) { operations [i].Undo (doc); doc.OnUndone (new UndoOperationEventArgs (operations[i])); } doc.currentAtomicUndoOperationType.Pop (); OnUndoDone (); }
public override void Undo (TextDocument doc, bool fireEvent = true) { doc.BeginAtomicUndo (operationType); try { for (int i = operations.Count - 1; i >= 0; i--) { operations [i].Undo (doc, false); doc.OnUndone (new UndoOperationEventArgs (operations [i])); } } finally { doc.EndAtomicUndo (); } if (fireEvent) OnUndoDone (); }
public override void Undo (TextDocument doc) { for (int i = operations.Count - 1; i >= 0; i--) { operations [i].Undo (doc); doc.OnUndone (new UndoOperationEventArgs (operations[i])); } OnUndoDone (); }
public override void Undo (TextDocument doc, bool fireEvent = true) { doc.currentAtomicUndoOperationType.Push (operationType); doc.atomicUndoLevel++; try { for (int i = operations.Count - 1; i >= 0; i--) { operations [i].Undo (doc, false); doc.OnUndone (new UndoOperationEventArgs (operations [i])); } } finally { doc.atomicUndoLevel--; doc.currentAtomicUndoOperationType.Pop (); } if (fireEvent) OnUndoDone (); }