private void changePasswordToolStripMenuItem_Click(object sender, System.EventArgs e) { if ((changePasswordForm == null) || (changePasswordForm.IsDisposed)) { changePasswordForm = new ChangePasswordForm(); changePasswordForm.MdiParent = this; } changePasswordForm.Show(); }
private void changePasswordToolStripMenuItem_Click(object sender, EventArgs e) { if ((myChangePasswordForm == null) || myChangePasswordForm.IsDisposed) { myChangePasswordForm = new ChangePasswordForm() { MdiParent = this, }; } if (myUpdateProfileForm != null) { if (myUpdateProfileForm.IsDisposed == false) { myUpdateProfileForm.Hide(); } } myChangePasswordForm.Show(); }
private void changePasswordToolStripMenuItem_Click(object sender, System.EventArgs e) { ChangePasswordForm frmChangePassword = new ChangePasswordForm(); frmChangePassword.Show(); }