Ejemplo n.º 1
0
        private void btnChangePassword_Click(object sender, EventArgs e)
        {
            if (!ValidatingTxtPassOld() || !ValidatingTxtPassNew() || !ValidatingTxtRePassNew())
            {
                MessageBox.Show(MessageBoxText.RequiredInput, MessageBoxText.CaptionWarning, MessageBoxButtons.OK, MessageBoxIcon.Warning);
                return;
            }

            UserBUS.HandleChangePassword(txtPassOld.Text, txtPassNew.Text, txtRePassNew.Text);
            txtPassOld.Text   = string.Empty;
            txtPassNew.Text   = string.Empty;
            txtRePassNew.Text = string.Empty;
        }