private void btnThemNV_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { NhanVienInfo nv = new NhanVienInfo(txtMaNV.Text, txtHoTenNV.Text, txtDiaChi.Text, txtDienThoai.Text, txtGioiTinh.Text); BUS_NHANVIEN.Them_NhanVien(nv); DialogResult dr = MessageBox.Show("Thêm thành công"); if (dr == DialogResult.OK) { loadata(); } } catch (Exception ex) { MessageBox.Show("Lỗi" + ex.ToString()); } }