private void btThemTG_Click(object sender, EventArgs e) { String id, name, text; id = txtIDTacGia.Text; name = txtTenTG.Text; text = txtGhiChu.Text; TacGia tacGia = new TacGia(id, name, text); try { int numberOfRows = new TacGiaBUS().AddTG(tacGia); dgvTacGia.DataSource = tacGiaBUS.getTacGia(); } catch (SqlException ex) { MessageBox.Show("Loi them tac gia\n" + ex.Message); } }