private void btn_them_Click(object sender, EventArgs e) { try { QLHS_DTO hs = new QLHS_DTO(); hs.MaHocSinh = txt_mahocsinh.Text; hs.HoTen = txt_tenhocsinh.Text; hs.TenKhoiLop = cb_khoi.Text; hs.TenLop = cb_lop.Text; QLHS_BUS bus = new QLHS_BUS(); bus.ThemDSLop(cb_lop.Text, txt_mahocsinh.Text); MessageBox.Show("Thêm thành công học sinh vào lớp " + cb_lop.Text + " !", "Thông báo"); LoadData(); } catch { MessageBox.Show("Error: Lỗi Database !"); } }