private void buttonDelete_Click(object sender, EventArgs e) { ClientsDA.Delete(Convert.ToInt32(textBoxclientID.Text)); MessageBox.Show(" Client record has been deleted successfully", "Confirmation"); textBoxclientID.Enabled = true; ClearAll(); }
private void buttonCliDelete_Click(object sender, EventArgs e) { string itemselected = textBoxCliName.Text; ClientsDA.Delete(itemselected); MessageBox.Show("Client record has been deleted successfully", "Confirmation"); ClearAllCli(); UpdateComboBoxes(); buttonCliList.PerformClick(); }