internal void RunRedo(IUndoableOperation op) { if (op is IUndoableOperationWithContext) { IUndoableOperationWithContext opWithCtx = op as IUndoableOperationWithContext; opWithCtx.Redo(this); } else { op.Redo(); } }
internal void RunUndo(IUndoableOperation op) { IUndoableOperationWithContext opWithCtx = op as IUndoableOperationWithContext; if (opWithCtx != null) { opWithCtx.Undo(this); } else { op.Undo(); } }