private void MembersToolStripMenuItem1_Click(object sender, EventArgs e) { if (frmMembers == null) { frmMembers = new MembersFrm(); frmMembers.MdiParent = this; frmMembers.FormClosed += FrmMembers_FormClosed;; frmMembers.Show(); } else { frmMembers.Activate(); } }
private void FrmMembers_FormClosed(object sender, FormClosedEventArgs e) { frmMembers = null; }