public bool DeleteNode(CircleDiagramNode node) { if (node == null || !IsCorrect()) { return(false); } return(Nodes.Remove(node)); }
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; }