Ejemplo n.º 1
0
 internal void RunRedo(IUndoableOperation op)
 {
     if (op is IUndoableOperationWithContext)
     {
         IUndoableOperationWithContext opWithCtx = op as IUndoableOperationWithContext;
         opWithCtx.Redo(this);
     }
     else
     {
         op.Redo();
     }
 }
Ejemplo n.º 2
0
        internal void RunUndo(IUndoableOperation op)
        {
            IUndoableOperationWithContext opWithCtx = op as IUndoableOperationWithContext;

            if (opWithCtx != null)
            {
                opWithCtx.Undo(this);
            }
            else
            {
                op.Undo();
            }
        }