private void createIncidentToolStripMenuItem_Click(object sender, EventArgs e) { if (ci == null) { ci = new CreateIncident(); ci.MdiParent = this; ci.FormClosed += new FormClosedEventHandler(ci_FormClosed); ci.Show(); } else ci.Activate(); }
private void ci_FormClosed(object sender, FormClosedEventArgs e) { ci = null; }