private void userInfoToolStripMenuItem_Click(object sender, EventArgs e) { if (this.accountInfoForm == null) { this.accountInfoForm = new AccountInfoForm(); this.accountInfoForm.MdiParent = this; this.accountInfoForm.FormClosed += new FormClosedEventHandler(this.accountInfo_FormClosed); this.accountInfoForm.Show(); } else { this.accountInfoForm.Activate(); } }
private void accountInfo_FormClosed(object sender, FormClosedEventArgs e) { this.accountInfoForm = null; }