private void btnLuu_Click(object sender, EventArgs e) { string tenTacGia = txtTenTacGia.Text; if (tenTacGia != "") { try { TacGiaBUS.AddTacGia(tenTacGia); MessageBox.Show(this, "Thêm tác giả thành công", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information); LoadTacGia(); btnLuu.Enabled = false; } catch { MessageBox.Show(this, "Không thể thêm tác giả", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error); } return; } MessageBox.Show(this, "Bạn chưa nhập tên tác giả", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error); }