public void smooth() { SmoothForm smoothForm = new SmoothForm(); smoothForm.img = this.opened_image; smoothForm.ShowDialog(this); this.opened_image = smoothForm.img; this.set_new_image(); }