Beispiel #1
0
        private void Browse_Init()
        {
            Pods cat = PodMan._download_serialized_json_data <Pods>("https://feedwrangler.net/api/v2/podcasts/categories");

            foreach (Podcast p in cat.podcasts)
            {
                Button button = new Button();
                button.Text   = p.title;
                button.Tag    = p;
                button.Width  = 220;
                button.Height = 100;
                button.Click += new EventHandler(button_Click);
                flowLayoutPanel3.Controls.Add(button);
            }
        }
Beispiel #2
0
 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;
 }
Beispiel #3
0
        private void button_Click(object sender, EventArgs e)
        {
            var  btn = sender as Button;
            Pods topInCat;

            if (btn != null)
            {
                var pod = btn.Tag as Podcast;
                if (pod != null)
                {
                    topInCat          = PodMan._download_serialized_json_data <Pods>("https://feedwrangler.net/api/v2/podcasts/category?id=" + pod.category_id);
                    topInCat.podcasts = topInCat.podcasts.Where(x => !string.IsNullOrEmpty(x.image_url)).ToArray();
                    Podlist pl = new Podlist(btn.Text, topInCat.podcasts, true);
                    //panel1.Controls.Clear();
                    //panel1.Controls.Add(uc);
                    tabPage2.Controls.Add(pl);
                    pl.BringToFront();
                }
            }
        }