private void personListToolStripMenuItem_Click(object sender, EventArgs e) { if (plForm == null) { plForm = new PeopleList { MdiParent = this }; plForm.FormClosed += new FormClosedEventHandler(plForm_FormClosed); plForm.Show(); } else { plForm.Activate(); } }
private void plForm_FormClosed(object sender, FormClosedEventArgs e) { plForm = null; }