private void deleteAAssignJobToolStripMenuItem_Click(object sender, EventArgs e) { if (daaj == null) { daaj = new DeleteAnAssignJob(); daaj.MdiParent = this; daaj.FormClosed += daaj_FormClosed; daaj.Show(); } else { daaj.Activate(); } }
void daaj_FormClosed(object sender, FormClosedEventArgs e) { daaj = null; }