Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }