private static void InitialFeedUpdateHandler(object sender, UpdateActivityEventArgs args) { PodcastFeedInfo feed = sender as PodcastFeedInfo; if (feed != null) { feed.UpdateFinished -= InitialFeedUpdateHandler; feed.UpdateStarted += OnFeedUpdateStatusChanged; feed.UpdateFinished += OnFeedUpdateStatusChanged; Library.AddPodcastFeed(feed); } }
private static void OnFeedUpdateStatusChanged(object sender, UpdateActivityEventArgs args) { source.Update(); }
private static void OnFeedUpdateStatusChanged(object sender, UpdateActivityEventArgs args) { source.Update (); }
private static void InitialFeedUpdateHandler(object sender, UpdateActivityEventArgs args) { PodcastFeedInfo feed = sender as PodcastFeedInfo; if (feed != null) { feed.UpdateFinished -= InitialFeedUpdateHandler; feed.UpdateStarted += OnFeedUpdateStatusChanged; feed.UpdateFinished += OnFeedUpdateStatusChanged; Library.AddPodcastFeed (feed); } }