private void btnRemovePodCast_Click(object sender, EventArgs e) { try { lstVPodcast.SelectedItems.Count.CheckIfIndexExist(); var selectedPod = lstVPodcast.SelectedItems[0].SubItems[1].Text; var podId = _podcastController.GetPodCast(selectedPod).Id; _podcastController.DeletePodCast(podId); _episodeController.DeleteEpisodes(podId); ShowPodCastSubscriptions(); lstBoxEpisodes.Items.Clear(); txtBoxEpisodeDescription.Clear(); } catch (NoValueAtIndexException err) { MessageBox.Show(err.ErrorMessage()); } catch (NoIndexException) { } }