private void changePasswordMenuItem_Click(object sender, EventArgs e) { if (userCPForm == null) { userCPForm = new UserControlPanelForm(currentUserName); userCPForm.MdiParent = this; userCPForm.Show(); } else { userCPForm.Activate(); } }
private void userCPMenuItem_Click(object sender, EventArgs e) { UserControlPanelForm userCPForm = new UserControlPanelForm(currentUserName); userCPForm.MdiParent = this; userCPForm.Show(); }