private void buttonRectangle_Click(object sender, EventArgs e)
        {
            IDrawFigure figure = figuresFabric.GetFigure("Rectangle");

            figure.Draw(graphics, new Pen(Color.Blue), random.GetRect);
        }
        private void buttonCircle_Click(object sender, EventArgs e)
        {
            IDrawFigure figure = figuresFabric.GetFigure("Ellips");

            figure.Draw(graphics, new Pen(Color.Red), random.GetRect);
        }