private void btnThemMon_Click(object sender, EventArgs e) { try { if (txtTenMon.Text == "") { MessageBox.Show("Phải nhập tên môn học"); return; } MonDTO monDTO = new MonDTO(); monDTO.TenMon = txtTenMon.Text; MonBUS.Insert(monDTO); MessageBox.Show("Thêm môn thành công"); } catch (System.Exception ex) { MessageBox.Show(ex.Message); } }