コード例 #1
0
        private void ButtonTaBortPodcast_Click(object sender, EventArgs e)
        {
            if (podcastListview.SelectedItems.Count > 0)
            {
                PodcastHandler.removePodcast(podcastListview.SelectedIndices[0]);

                if (PodcastHandler.podcastListCount() > 0)
                {
                    podcastListview = PodcastHandler.updatePodcastListview(podcastListview);
                    podcastListview.Items[0].Selected = true;
                }
                else
                {
                    podcastListview.Items.Clear();
                    episodeListview.Items.Clear();
                    episodeDetailsTextBox.Clear();
                }
            }
        }