Exemplo n.º 1
0
        public void UnconnectNodes(Node node1, Node node2)
        {
            NewOperation();
            var com = ComUnconnectNode.SetCommand(this, node1, node2);

            com.Execute();
            history.Add(com);
        }
Exemplo n.º 2
0
        public static ComUnconnectNode SetCommand(Graph curgraph, Node node1, Node node2)
        {
            var tmp = new ComUnconnectNode();

            tmp._graph = curgraph;
            tmp._node1 = node1;
            tmp._node2 = node2;
            return(tmp);
        }