Пример #1
0
        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;
        }
Пример #2
0
 public void Unlink()
 {
     DestinationItem = null;
     State           = LinkingArrowState.Linking;
 }
Пример #3
0
 public void Link(MapItem destinationItem)
 {
     DestinationItem = destinationItem;
     State           = LinkingArrowState.Linked;
 }