public LinkView(ref NodeView beginNodeView, ref NodeView endNodeView) : this() { SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint | ControlStyles.ResizeRedraw, true); SetAttachmentNodeViews(ref beginNodeView, ref endNodeView); }
public bool IsBetween(NodeView beginNodeView, NodeView endNodeView) { return(BeginNodeView.Equals(beginNodeView) && EndNodeView.Equals(endNodeView) || BeginNodeView.Equals(endNodeView) && EndNodeView.Equals(beginNodeView)); }