Exemple #1
0
        public async void GetPodcasts(Task <Podcast> podcastAwaitable)
        {
            Podcast podcast  = await podcastAwaitable;
            var     pControl = new PodcastControl(podcast)
            {
                Margin = new Thickness(15)
            };

            Subscriptions.AddPodcast(podcast);
            PodcastsGrid.Items.Add(pControl);
        }
Exemple #2
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            IEnumerable <Podcast> podcasts = Subscriptions.Podcasts.OrderBy(p => p.SortOrder);

            if (App.Settings.SortPodcastsByName)
            {
                podcasts = podcasts.OrderBy(p => p.Title);
            }
            foreach (Podcast podcast in podcasts)
            {
                PodcastControl podcastCtrl = new PodcastControl(podcast);
                podcastCtrl.UnsubscribePodcast += UnsubscribePodcast_Click;
                PodcastsGrid.Items.Add(podcastCtrl);
                //taskList.Add(podcastCtrl.SetArtworkAsync());
            }
            base.OnNavigatedTo(e);
        }