private void searchFromPeopleToolStripMenuItem_Click(object sender, EventArgs e) { if (spForm == null) { spForm = new SearchPeople { MdiParent = this }; spForm.FormClosed += new FormClosedEventHandler(spForm_FormClosed); spForm.Show(); } else { spForm.Activate(); } }
private void spForm_FormClosed(object sender, FormClosedEventArgs e) { spForm = null; }