Пример #1
0
 private void QueuePodcastDownload(PodcastInfo pi)
 {
     if (pi.CanDownload)
     {
         PodcastCore.QueuePodcastDownload(pi);
     }
 }
Пример #2
0
        private void SyncPodcasts()
        {
            if (sync_preference == SyncPreference.None)
            {
                return;
            }

            lock (podcasts.SyncRoot)
            {
                if (sync_preference == SyncPreference.One)
                {
                    if (podcasts.Count > 0)
                    {
                        PodcastInfo pi = podcasts [0] as PodcastInfo;
                        QueuePodcastDownload(pi);
                    }
                }
                else if (sync_preference == SyncPreference.All)
                {
                    PodcastCore.QueuePodcastDownload(podcasts);
                }
            }
        }