private void m_profile_Click(object sender, EventArgs e) { if (true) { pro = new Eprofile(); pro.MdiParent = this; pro.FormClosed += new FormClosedEventHandler(Pro_FormClosed); pro.Show(); } else { pro.Activate(); } }
private void Pro_FormClosed(object sender, FormClosedEventArgs e) { pro = null; }