private void btnLuuLai_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (themmoi) { tk.ThemTaiKhoan(txtTenTK.Text, sha256_hash(txtMatKhau.Text), cbb_QuyenDN.SelectedValue.ToString(), txtHoTen.Text); MessageBox.Show("Thêm mới thành công"); } else { tk.CapNhatTaiKhoan(txtTenTK.Text, sha256_hash(txtMatKhau.Text), cbb_QuyenDN.SelectedValue.ToString(), txtHoTen.Text); MessageBox.Show("Cập nhật thành công", "Thông báo"); } LayDS_TaiKhoan(); ClearForm(); SetTextBox(false); SetButton(true); lsvTaiKhoan.Enabled = true; }