private void buttonNext_Click(object sender, EventArgs e) { if ((textBoxSample.Text == String.Empty) && (textBoxQuantize.Text == String.Empty)) MessageBox.Show("Especifica algún valor para el muestreo o la cuantización"); else { ImageForm digitalImage = new ImageForm(); digitalImage.MdiParent = this.MdiParent; if ((textBoxSample.Text != String.Empty) && (textBoxQuantize.Text != String.Empty)) { digitalImage.samplingImage(bmp_, Convert.ToInt32(textBoxSample.Text)); digitalImage.quantizationImage(digitalImage.getPicture(), Convert.ToInt32(textBoxQuantize.Text)); } else if (textBoxQuantize.Text != String.Empty) digitalImage.quantizationImage(bmp_, Convert.ToInt32(textBoxQuantize.Text)); else if (textBoxSample.Text != String.Empty) digitalImage.samplingImage(bmp_, Convert.ToInt32(textBoxSample.Text)); digitalImage.Show(); } }