public override IMemento <NodalDirector> Restore(NodalDirector target) { IMemento <NodalDirector> inverse = new DeleteNodeMemento(node, node.Parent, new NodeConnexions(node), XOffset, YOffset); target._DeleteNode(node); return(inverse); }
public override IMemento <NodalDirector> Restore(NodalDirector target) { Node removed = target.manager.GetNode(nodeName); IMemento <NodalDirector> inverse = new DeleteNodeMemento(removed, removed.Parent, null, 0, 0); target._DeleteNode(removed); return(inverse); }