void CheckImage(String Path) { try { ImageExample.Image = Image.FromFile(directory + "\\Images\\" + Path); QuestionPicturePathTB.Text = Path; QuestionImageName = Path; } catch { MessageBox.Show("Недопустимая картинка"); } ImageChooseDialog.Dispose(); }
private void QuestionPicturePathChooseButton_Click(object sender, EventArgs e) => ImageChooseDialog.ShowDialog();