Ejemplo n.º 1
0
        public void VisitRectangle(Figures.Rectangle fig)
        {
            var blackPen = new Pen(Color.Black, 3);
            var rect     = new System.Drawing.Rectangle(X, Y, fig.Width, fig.Height);

            //e.Graphics.DrawRectangle(blackPen, rect);
            Console.WriteLine("Rectangle was drawed");
        }
Ejemplo n.º 2
0
 public AFigure Create(Point first, int n, Color color, Color fillColor, int thickness)
 {
     Figures.Rectangle rectangle = new Figures.Rectangle(first, color, fillColor, thickness);
     return(rectangle);
 }
Ejemplo n.º 3
0
 private void button_Rectangle_Click(object sender, EventArgs e)
 {
     Figure rectangle = new Figures.Rectangle();
 }