private void deleteAnAdminInfomationToolStripMenuItem_Click(object sender, EventArgs e) { if (da == null) { da = new DeleteAnAdmin(); da.MdiParent = this; da.FormClosed += da_FormClosed; da.Show(); } else { da.Activate(); } }
private void deleteAnAdminInfomationToolStripMenuItem_Click(object sender, EventArgs e) { if(da==null) { da = new DeleteAnAdmin(); da.MdiParent = this; da.FormClosed += da_FormClosed; da.Show(); } else { da.Activate(); } }
void da_FormClosed(object sender, FormClosedEventArgs e) { da = null; }