Пример #1
0
        public IFigure Clone()
        {
            Trapeze NewF = new Trapeze(startPoint.X, startPoint.Y, DrawPanel, (Pen)DrPen.Clone(), FillColor);

            NewF.endPoint           = new Point(this.endPoint.X, this.endPoint.Y);
            NewF.EndOfCurrentFigure = this.EndOfCurrentFigure;
            return(NewF);
        }
Пример #2
0
        public override IFigure Clone()
        {
            Ellipse NewF = new Ellipse(startPoint.X, startPoint.Y, DrawPanel, (Pen)DrPen.Clone(), FillColor);

            NewF.endPoint           = new Point(this.endPoint.X, this.endPoint.Y);
            NewF.EndOfCurrentFigure = this.EndOfCurrentFigure;
            return(NewF);
        }
Пример #3
0
        public override IFigure Clone()
        {
            BrokenLine NewF = new BrokenLine(startPoint.X, startPoint.Y, null, (Pen)DrPen.Clone(), FillColor);

            NewF.EndOfCurrentFigure = this.EndOfCurrentFigure;

            for (int i = 0; i < points.Count; i++)
            {
                NewF.points.AddLast(points.ElementAt <Point>(i));
            }
            NewF.n = this.n;

            return(NewF);
        }
Пример #4
0
        public override IFigure Clone()
        {
            RigthPolygon NewF = new RigthPolygon(startPoint.X, startPoint.Y, DrawPanel, (Pen)DrPen.Clone(), FillColor);

            NewF.TopAmount          = topAmount;
            NewF.endPoint           = new Point(this.endPoint.X, this.endPoint.Y);
            NewF.EndOfCurrentFigure = this.EndOfCurrentFigure;
            return(NewF);
        }