private void buttonDeletePublisher_Click(object sender, EventArgs e) { if (IsValidPublisherData()) { DialogResult ans = MessageBox.Show("Do you really want to delete this Publisher?", "Confirmation", MessageBoxButtons.YesNo, MessageBoxIcon.Information); if (ans == DialogResult.Yes) { PublisherDA.Delete(textBoxPublisherName.Text); MessageBox.Show("Publisher record has been deleted successfully", "Confirmation"); ClearAll(); textBoxPublisherName.Enabled = true; } } }
private void buttonDeletePublisher_Click(object sender, EventArgs e) { PublisherDA.Delete(textBoxNamePublisher.Text); MessageBox.Show(" Publisher record has been deleted successfully", "Confirmation"); ClearAll(); }
public void Delete(int id) { publisherDA.Delete(id); }