Exemple #1
0
        private void browseBox_DoubleClick(object sender, EventArgs e)
        {
            if (browseBox.SelectedIndex == -1)
            {
                return;
            }
            else if (browseBox.SelectedItem is string && browseBox.SelectedItem.ToString() == LOADMORE)
            {
                browseBox.Items.Remove(LOADMORE);
                currentPage++;
                NextBrowse();
                browseBox.Items.Add(LOADMORE);
            }
            else
            {
                System.Console.WriteLine(browseBox.SelectedItem.GetType());
                ContentSeriesInfo link   = ((SeriesInfoBinding)browseBox.SelectedItem).Show;
                BaseCDNModule     module = moduleCombo.SelectedItem as BaseCDNModule;

                titleLabel.Text = link.Name;
                //Load cover image
                Stream stream = client.OpenRead(link.ImgLink);
                coverPicture.Image = new Bitmap(stream);
                stream.Close();
                //change listings
                ChangeListing(module.GetContentList(link.Link));
            }
        }
Exemple #2
0
 public SeriesInfoBinding(ContentSeriesInfo show)
     : this()
 {
     Show = show;
 }