private void pictureboxTrainImage_Click(object sender, EventArgs e) { if (pictureboxTrainImage.Image != null) { formImage.ShowImageDialog(pictureboxTrainImage.Image); } }