//the method adds a figure to the FigureList class, and draws the desired figure (Ellipse) private void button4_Click(object sender, EventArgs e) { figlist.figarray.Add("Ell"); using (grx = Graphics.FromImage(bmp)) { grx.DrawEllipse(Pens.Black, figlist.GetEllipse(Convert.ToInt32(textBox16.Text), Convert.ToInt32(textBox15.Text), Convert.ToInt32(textBox14.Text), Convert.ToInt32(textBox13.Text))); } pictureBox1.Image = bmp; }