Example #1
0
        void ChangeMatKhau()
        {
            string user    = txtUser.Text;
            string mkcu    = txtMKcu.Text;
            string mkmoi   = txtMKmoi.Text;
            string mkremoi = txtReMKmoi.Text;

            if (user == "" || mkcu == "" || mkmoi == "" || mkremoi == "")
            {
                MessageBox.Show("Vui lòng nhập đầy đủ thông tin", "Lưu ý", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            }
            else if (mkmoi != mkremoi)
            {
                MessageBox.Show("Mật khẩu mới không trùng khớp", "Cảnh báo", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            }
            else
            {
                TaiKhoanBUS.ChangeMK(user, mkcu, mkmoi);
            }
        }