Esempio n. 1
0
        public LinkedList <Marker> CreateMarkers()
        {
            var list = new LinkedList <Marker>();

            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);
        }
Esempio n. 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);
        }