private void btnViewPhoto_Click(object sender, EventArgs e) { frmLurePhoto photoForm = new frmLurePhoto(pictureNameTextBox.Text); if (addingNew) { openFileDialog1.ShowDialog(); } else { photoForm.Show(); } }