Esempio n. 1
0
        public void DrawLink(Graphics graphics)
        {
            var beginPoint = BeginNodeView.CenterPoint();
            var endPoint   = EndNodeView.CenterPoint();

            graphics.DrawLine(_pen, beginPoint, endPoint);
        }
Esempio n. 2
0
 public bool IsBetween(NodeView beginNodeView, NodeView endNodeView)
 {
     return(BeginNodeView.Equals(beginNodeView) && EndNodeView.Equals(endNodeView) ||
            BeginNodeView.Equals(endNodeView) && EndNodeView.Equals(beginNodeView));
 }