Пример #1
0
        public ComplexLine(Port start, Port end) : base(start, end)
        {
            mSegments = new Segments();
            Segment segment = new Segment(Start, End);

            Segments.Add(segment);
            segment.SegmentInvalid += new EventHandler(segment_SegmentInvalid);

            AllowExpand = true;
        }
Пример #2
0
        public ComplexLine(ComplexLine prototype) : base(prototype)
        {
            mSegments = new Segments();
            Segment segment = new Segment(Start, End);

            Segments.Add(segment);
            segment.SegmentInvalid += new EventHandler(segment_SegmentInvalid);

            //Set up segments
            for (int i = 0; i < prototype.Segments.Count - 1; i++)
            {
                segment = AddSegment(i + 1, new Origin((PointF)prototype.Points[i + 1]));
                segment.Start.Marker = prototype.Segments[i + 1].Start.Marker;
            }
            DrawPath();

            AllowExpand = prototype.AllowExpand;
        }