예제 #1
0
        private void cmdResetPass_Click(object sender, EventArgs e)
        {
            var bll = new Pol_UserBLL();

            if (bll.ChangePass("@123456"))
                XtraMessageBox.Show(STR_SUCC, STR_TITLE,
                    MessageBoxButtons.OK, MessageBoxIcon.Information);
            else
                XtraMessageBox.Show(STR_ERR, STR_TITLE,
                    MessageBoxButtons.OK, MessageBoxIcon.Error);
        }
예제 #2
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            if (txtPass.Text == txtConfirm.Text)
            {
                var bll = new Pol_UserBLL();
                if (bll.ChangePass(txtPass.Text))
                {
                    XtraMessageBox.Show(STR_SUCC, STR_TITLE,
                        MessageBoxButtons.OK, MessageBoxIcon.Information);

                    Extend.Login();
                }
                else
                {
                    XtraMessageBox.Show(STR_ERR, STR_TITLE,
                        MessageBoxButtons.OK, MessageBoxIcon.Error);

                    txtPass.Focus();
                }
            }
            else
            {
                XtraMessageBox.Show(STR_CONFIRM, STR_TITLE,
                    MessageBoxButtons.OK, MessageBoxIcon.Error);

                txtConfirm.Focus();
            }
        }