/*  private static void OnFeedPodcastsUpdated (object sender,
  * FeedPodcastsUpdatedEventArgs args)
  * {
  * ICollection new_podcasts = args.NewPodcasts;
  * ICollection removed_podcasts = args.RemovedPodcasts;
  *
  * if (removed_podcasts != null) {
  *  PodcastCore.Library.RemovePodcasts (removed_podcasts);
  * }
  *
  * if (new_podcasts != null) {
  *  PodcastCore.Library.AddPodcasts (new_podcasts);
  * }
  * }
  */
 private static void OnPlayerEngineStateChanged(object sender,
                                                PlayerEngineStateArgs args)
 {
     if (source != null)
     {
         source.Update();
     }
 }
Ejemplo n.º 2
0
        private void OnPlayerStateChanged(object o, PlayerEngineStateArgs args)
        {
            view.QueueDraw();

            if (args.State == PlayerEngineState.Loaded && PlayerEngineCore.CurrentTrack is RadioTrackInfo)
            {
                last_loaded_track = PlayerEngineCore.CurrentTrack as RadioTrackInfo;
            }
        }
        private void OnPlayerStateChanged(object o, PlayerEngineStateArgs args)
        {
            view.QueueDraw();

            if(args.State == PlayerEngineState.Loaded && PlayerEngineCore.CurrentTrack is RadioTrackInfo) {
                last_loaded_track = PlayerEngineCore.CurrentTrack as RadioTrackInfo;
            }
        }
        /*  private static void OnFeedPodcastsUpdated (object sender,
           FeedPodcastsUpdatedEventArgs args)
          {
           ICollection new_podcasts = args.NewPodcasts;
           ICollection removed_podcasts = args.RemovedPodcasts;

           if (removed_podcasts != null) {
            PodcastCore.Library.RemovePodcasts (removed_podcasts);
           }

           if (new_podcasts != null) {
            PodcastCore.Library.AddPodcasts (new_podcasts);
           }
          }
        */
        private static void OnPlayerEngineStateChanged(object sender,
                PlayerEngineStateArgs args)
        {
            if(source != null) {
                source.Update ();
            }
        }