private void button2_Click(object sender, EventArgs e) { IDrawAPI rectangle = FigureFactory.GetFigure("Rectangle"); rectangle.GetFigure(GetRandom(200), GetRandom(200), GetRandom(200), GetRandom(200), PictureBox); }
private void button1_Click(object sender, EventArgs e) { IDrawAPI circle = FigureFactory.GetFigure("Circle"); circle.GetFigure(GetRandom(200), GetRandom(200), GetRandom(200), PictureBox); }