public void DrawLink(Graphics graphics) { var beginPoint = BeginNodeView.CenterPoint(); var endPoint = EndNodeView.CenterPoint(); graphics.DrawLine(_pen, beginPoint, endPoint); }
public bool IsBetween(NodeView beginNodeView, NodeView endNodeView) { return(BeginNodeView.Equals(beginNodeView) && EndNodeView.Equals(endNodeView) || BeginNodeView.Equals(endNodeView) && EndNodeView.Equals(beginNodeView)); }