public LinkingArrow(MapItem sourceItem, MapItem destinationItem, LinkingArrowState state) { SourceItem = sourceItem; DestinationItem = destinationItem; State = state; _linkingArrowBorderPen = new Pen(Color.White, LinkingArrowPen); _linkingArrowBorderPen.EndCap = LineCap.ArrowAnchor; _linkingArrowBorderPen.DashStyle = DashStyle.Dot; _linkingArrowBorderPen.DashCap = DashCap.Round; _linkingArrowBorderPen.DashOffset = 0.08f; }
public void Unlink() { DestinationItem = null; State = LinkingArrowState.Linking; }
public void Link(MapItem destinationItem) { DestinationItem = destinationItem; State = LinkingArrowState.Linked; }