Example #1
0
        private void gunaTileButton2_Click(object sender, EventArgs e)
        {
            Form_LoginApp f1 = new Form_LoginApp();

            this.Hide();
            f1.Show();
        }
Example #2
0
        private void btnConf_Click(object sender, EventArgs e)
        {
            if (txtMaXN.Text == otp)
            {
                if (txtPassM.Text == "" || txtPassCon.Text == "")
                {
                    MessageBox.Show("Chưa nhập đủ", "Thông Báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    return;
                }
                if (txtPassM.Text != txtPassCon.Text)
                {
                    MessageBox.Show("Mật khẩu không trùng nhau", "Thông Báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    return;
                }
                if (txtPassM.Text.Equals(txtPassCon.Text))
                {
                    dt.quenmk(matk, txtPassCon.Text);
                    MessageBox.Show("Bạn đã đổi mật khẩu thành công!", "Thông Báo", MessageBoxButtons.OK);

                    this.Hide();
                    Form_LoginApp back = new Form_LoginApp();
                    back.Visible = true;
                }
                else
                {
                    MessageBox.Show("Mã OTP không đúng", "Thông Báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
            }
        }