private void editAnAdminInfomationToolStripMenuItem1_Click(object sender, EventArgs e) { if (ua == null) { ua = new UpdateAdmin(); ua.MdiParent = this; ua.FormClosed += ua_FormClosed; ua.Show(); } else { ua.Activate(); } }
void ua_FormClosed(object sender, FormClosedEventArgs e) { ua = null; }
private void editAnAdminInfomationToolStripMenuItem1_Click(object sender, EventArgs e) { if(ua==null) { ua = new UpdateAdmin(); ua.MdiParent = this; ua.FormClosed += ua_FormClosed; ua.Show(); } else { ua.Activate(); } }