private void btn_luuTaiKhoan_Click(object sender, EventArgs e) { if (txt_taoTenDangNhap.Text == "" || txt_taoMatKhau.Text == "") { XtraMessageBox.Show("Chưa điền đầy đủ thông tin!!", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Warning); } else { if (tkDTO != null) { GetDetail(); int kq = tkBUS.AddTK(tkDTO); if (kq == 1) { XtraMessageBox.Show("Tạo tài khoản thành công!", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information); string manv = txt_manv.Text; tkBUS.UpdateTK(manv); nvBUS.danhsachNVChuaCoTaiKhoan(); this.Dispose(); } else { XtraMessageBox.Show("Tạo không thành công", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Warning); } } } }