private void buttonNext_Click(object sender, EventArgs e) { if ((textBoxGamma.Text != String.Empty) && (textBoxGamma.Text != "0")) { ImageForm image = new ImageForm(); image.MdiParent = this.MdiParent; image.Gamma(Convert.ToDouble(textBoxGamma.Text), bmp_); image.Show(); } }