예제 #1
0
파일: PodInfo.cs 프로젝트: eriher/podMan
 public PodInfo(int pid)
 {
     pod = PodMan._download_serialized_json_data <Pod>("https://feedwrangler.net/api/v2/podcasts/show?podcast_id=" + pid).podcast;
     InitializeComponent();
     if (PodMan.Instance.SubscribedPods.Contains(pod))
     {
         subscribed();
     }
     playerPanel          = PodMan.Instance.PlayerContainer;
     podTitle.Text        = pod.title;
     podSum.Text          = pod.summary;
     podPic.ImageLocation = pod.image_url;
     podPic.LoadAsync(pod.image_url);
     foreach (Recent_Episodes ep in pod.recent_episodes)
     {
         podEpisodes.Rows.Add(ep.title);
     }
     podClose.Click += PodClose_Click;
 }
예제 #2
0
파일: Podcast.cs 프로젝트: eriher/podMan
        public override bool Equals(System.Object obj)
        {
            // If parameter is null return false.
            if (obj == null)
            {
                return(false);
            }

            // If parameter cannot be cast to Point return false.
            Podcast p = obj as Podcast;

            if ((System.Object)p == null)
            {
                return(false);
            }

            // Return true if the fields match:
            return(podcast_id == p.podcast_id);
        }
예제 #3
0
 internal void Subscribe(Podcast pod)
 {
     pod.recent_episodes = null;
     SubscribedPods.Add(pod);
     saveSubs();
 }
예제 #4
0
 internal void UnSubscribe(Podcast pod)
 {
     SubscribedPods.Remove(pod);
     saveSubs();
 }