示例#1
0
 public bool DeleteNode(CircleDiagramNode node)
 {
     if (node == null || !IsCorrect())
     {
         return(false);
     }
     return(Nodes.Remove(node));
 }
示例#2
0
 public bool AddNode(CircleDiagramNode node)
 {
     if (node == null || !IsCorrect())
     {
         return(false);
     }
     Nodes.Add(node);
     return(true);
 }
 public CircleDiagramRelationship(CircleDiagramNode beginNode, CircleDiagramNode endNode)
 {
     Name      = string.Format("Relationship_{0}", Guid.NewGuid());
     BeginNode = beginNode;
     EndNode   = endNode;
 }
 public CircleDiagramRelationship(string name, CircleDiagramNode beginNode, CircleDiagramNode endNode)
 {
     Name      = name ?? string.Empty;
     BeginNode = beginNode;
     EndNode   = endNode;
 }