private void Camera_View_button_Click(object sender, EventArgs e) { if (camView == null) { camView = new CamView2 { MdiParent = this }; camView.FormClosing += subFormClosing; camView.FormClosed += camView_FormClosed; camView.ReloadRequiredHandler += Reload_Image; camView.AddSaveRawEH(SaveRaw); camView.Show(); AddCamViewEvents(); UpdateControls(); } else { camView.Activate(); } }
private void camView_FormClosed(object sender, FormClosedEventArgs e) { camView = null; }