Exemple #1
0
        public override LinkedList <Marker> CreateMarkers()
        {
            EndLineMarker m1 = new EndLineMarker(FindDelegate, 0);
            EndLineMarker m2 = new EndLineMarker(FindDelegate, 1);

            m1.targetFigure = this;
            m2.targetFigure = this;
            var list = new LinkedList <Marker>();

            list.AddLast(m1);
            list.AddLast(m2);
            return(list);
        }
Exemple #2
0
        public override LinkedList <Marker> CreateMarkers()
        {
            EndLineMarker m1 = new EndLineMarker(FindDelegate, 0);
            EndLineMarker m2 = new EndLineMarker(FindDelegate, 1);

            m1.targetFigure = this;
            m2.targetFigure = this;
            var list = new LinkedList <Marker>();

            list.AddLast(m1);
            list.AddLast(m2);
            for (int i = 0; i < _points.Count; i++)
            {
                var c = new ControlMarker(i, _points[i]);
                c.targetFigure = this;
                c.FigureMoved += OnMarkerMove;
                list.AddLast(c);
            }
            return(list);
        }