public void brightness_contrast() { BrightnessContrastForm brightness_contrast_form = new BrightnessContrastForm(); brightness_contrast_form.current_image = this.opened_image; brightness_contrast_form.ShowDialog(this); this.opened_image = brightness_contrast_form.current_image; set_new_image(); }