private void buttonDelete_Click(object sender, EventArgs e) { if (MessageBox.Show("Do you want to delete the Support Contract?", "AuditWizard", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { AssetDAO objAsseDAO = new AssetDAO(); objAsseDAO.DeleteSupportContract(_asset.AssetID); checkBoxSupportContract.Checked = false; ClearControlsSupportContract(); FillSupportContractComboBox(); FillSuppliersComboBox(); MessageBox.Show("Support Contract Successfully Deleted", "AuditWizard", MessageBoxButtons.OK, MessageBoxIcon.Information); this.panelSupportExpired.Visible = false; } }