private void Levy_Click(object sender, EventArgs e) { g.Clear(back_ground); int i = Convert.ToInt32(Levy_N.Text); if (i <= 20) { fractals.Levy(250, 400, 160, 160, i); fractals.Levy(400, 400, 160, 310, i); fractals.Levy(400, 250, 310, 310, i); fractals.Levy(250, 250, 310, 160, i); pictureBox1.Image = bmp; } else { MessageBox.Show("Введите меньшее значение шагов"); } }