}//Load the Service Contract private void btnRemoveServiceContract_Click(object sender, EventArgs e) { if (lstServiceContract.SelectedItems.Count > 0) { //Ask user for conformation DialogResult deleteI = MessageBox.Show("Are you sure you want to delete this Service Contract?", "WARNING: DELETE Package", MessageBoxButtons.YesNo, MessageBoxIcon.Warning); //Get user for conformation if (deleteI == DialogResult.Yes) { ServiceContract RSC = lstServiceContract.SelectedItems[0].Tag as ServiceContract; SC_L.DeleteServiceContract(RSC); } } else { MessageBox.Show("No Record was selected", "SELECTION", MessageBoxButtons.OK, MessageBoxIcon.Information); } }