Esempio n. 1
0
 private void btnXacNhan_Click(object sender, EventArgs e)
 {
     if (checkText() == true)
     {
         if (txtpass2.Text.Equals(txtpass1.Text))
         {
             dtoACCOUNT = new DTO_Account(txtUser.Text, txtpass2.Text, Convert.ToInt32(rowACCOUNT[2]), "");
             if (busACCOUNT.Update(dtoACCOUNT) == true)
             {
                 XtraMessageBox.Show("Đổi mật khẩu thành công");
                 this.Hide();
             }
             else
             {
                 XtraMessageBox.Show("Đổi mật khẩu không thành công");
             }
         }
         else
         {
             XtraMessageBox.Show("Mật khẩu xác nhận không khớp!!!");
         }
     }
     else
     {
         XtraMessageBox.Show("Chưa Nhập đủ thông tin!!");
     }
 }