Exemplo n.º 1
0
        private void button2_Click(object sender, EventArgs e)
        {
            IDrawAPI rectangle = FigureFactory.GetFigure("Rectangle");

            rectangle.GetFigure(GetRandom(200), GetRandom(200), GetRandom(200), GetRandom(200), PictureBox);
        }
Exemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            IDrawAPI circle = FigureFactory.GetFigure("Circle");

            circle.GetFigure(GetRandom(200), GetRandom(200), GetRandom(200), PictureBox);
        }