private void Dragon_Click(object sender, EventArgs e) { int n = Convert.ToInt32(Dragon_N.Text); if (n <= 15) { g.Clear(back_ground); int x1 = pictureBox1.Width / 3, y1 = pictureBox1.Height / 3, x2 = pictureBox1.Width / 2 + 100, y2 = pictureBox1.Height / 2 + 100; fractals.Dragon(x1, y1, x2, y2, 20); pictureBox1.Image = bmp; } else { MessageBox.Show("Введите меньшее значение шагов"); } }