示例#1
0
 public void CreateLine(NodeBase fromNode, NodeBase toNode)
 {
     if (fromNode.CanConnectLineAsParent() && toNode.CanConnectLineAsChild())
     {
         fromNode.AddChildNode(toNode);
         toNode.ParentNode = fromNode;
         ConnectLine line = new ConnectLine(fromNode, toNode, DestoryLine);
         _lineList.Add(line);
     }
 }