private void ToolStripButton3_Click(object sender, EventArgs e) { if (intensityView == null) { intensityView = new IntensityView { MdiParent = this }; intensityView.FormClosing += subFormClosing; intensityView.FormClosed += intensityView_FormClosed; intensityView.ReloadRequiredHandler += Reload_Image; intensityView.AddSaveRawEH(SaveRaw); intensityView.Show(); } else { intensityView.Activate(); } }
private void intensityView_FormClosed(object sender, FormClosedEventArgs e) { intensityView = null; }