Ejemplo n.º 1
0
        public void CreateRectangle(double width, double height)
        {
            Width  = width;
            Height = height;

            List <IFigure> NewPolyLinePoints = new List <IFigure>();

            foreach (IPoint p in RectangleHelper.ReturnRectanglePoints(drawing, this))
            {
                NewPolyLinePoints.Add(p);
            }

            var newPolyLine = Factory.CreatePolyline(drawing, NewPolyLinePoints);

            drawing.Figures.Add(newPolyLine);
        }