示例#1
0
        private void forgotPasswordLinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            forgotPasswordFrm forgotpassword = new forgotPasswordFrm();

            forgotpassword.ShowDialog();
            if (forgotpassword.DialogResult == DialogResult.Cancel)
            {
                MessageBox.Show("User Password Was NOT changed");
            }
        }
示例#2
0
        private void changePasswordToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //Change password
            forgotPasswordFrm changeCurrentUserPassword = new forgotPasswordFrm(Username);

            changeCurrentUserPassword.ShowDialog();
            if (changeCurrentUserPassword.DialogResult == DialogResult.Cancel)
            {
                MessageBox.Show("User Password Was NOT changed");
            }
            changeCurrentUserPassword = null;
        }