Exemplo n.º 1
0
        public void GetNewEpisode()
        {
            timerCounter++;
            string updatedPodcasts = "";

            updatedPodcasts = PodcastHandler.updateEpisodes(1);
            if (timerCounter == 5)
            {
                updatedPodcasts += updatedPodcasts + PodcastHandler.updateEpisodes(5);
            }
            else if (timerCounter == 10)
            {
                updatedPodcasts += updatedPodcasts + PodcastHandler.updateEpisodes(5);
                updatedPodcasts += PodcastHandler.updateEpisodes(10);
                timerCounter     = 0;
            }
            if (updatedPodcasts.Length > 0)
            {
                MessageBox.Show(updatedPodcasts);
                podcastListview = PodcastHandler.updatePodcastListview(podcastListview);
                if (podcastListview.Items.Count > 0)
                {
                    podcastListview.Items[0].Selected = true;
                }
            }
        }