private void MM_service_Click(object sender, EventArgs e) { if (ms == null) { ms = new ManageService(); ms.MdiParent = this; ms.FormClosed += new FormClosedEventHandler(Ms_FormClosed); ms.Show(); } else { ms.Activate(); } }
private void Ms_FormClosed(object sender, FormClosedEventArgs e) { ms = null; }