//the method adds a figure to the FigureList class, and draws the desired figure (Circle) private void button5_Click(object sender, EventArgs e) { figlist.figarray.Add("Cir"); using (grx = Graphics.FromImage(bmp)) { grx.DrawEllipse(Pens.Black, figlist.GetCircle(Convert.ToInt32(textBox20.Text), Convert.ToInt32(textBox19.Text), Convert.ToInt32(textBox18.Text), Convert.ToInt32(textBox17.Text))); } pictureBox1.Image = bmp; }