コード例 #1
0
 private void QueuePodcastDownload(PodcastInfo pi)
 {
     if (pi.CanDownload)
     {
         PodcastCore.QueuePodcastDownload(pi);
     }
 }
コード例 #2
0
        protected override void PluginDispose()
        {
            Globals.ActionManager.UI.RemoveUi(ui_manager_id);
            Globals.ActionManager.UI.RemoveActionGroup(actions);

            actions = null;
            PodcastCore.Dispose();
        }
コード例 #3
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);
                }
            }
        }
コード例 #4
0
 protected override void InterfaceInitialize()
 {
     InstallInterfaceActions();
     PodcastCore.Initialize(this);
 }
コード例 #5
0
 private void OnVisitPodcastAlleyHandler(object sender, EventArgs args)
 {
     PodcastCore.VisitPodcastAlley();
 }
コード例 #6
0
 private void OnPodcastSubscribeHandler(object sender, EventArgs args)
 {
     PodcastCore.RunSubscribeDialog();
 }
コード例 #7
0
 private void OnPodcastUpdateFeedsHandler(object sender, EventArgs args)
 {
     PodcastCore.UpdateAllFeeds();
 }