private void btnThem_Click(object sender, EventArgs e) { if (txtTenTacGia.Text.Length == 0) { MessageBox.Show("Bạn Chưa Nhập Tên Tác Giả!", "Cảnh báo!"); } else { TacGiaDTO tacGia = new TacGiaDTO(); tacGia.TenTG = txtTenTacGia.Text; TacGiaBUS.Insert(tacGia); MessageBox.Show("Thêm thành công!", "Thông báo!"); this.Close(); } }