Exemplo n.º 1
0
        private void openToolStripMenuItemOpenNStream_Click(object sender, EventArgs e)
        {
            var frm = new NetworkStreamForm();

            if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                try
                {
                    var scraper = VideoScraperBase.GetScraper(frm.Url);
                    var movie   = new Movie
                    {
                        Description = frm.Url,
                        Url         = frm.Url,
                        Name        = frm.Url,
                        ReleaseDate = DateTime.Now
                    };
                    movie.Links.Add(new MovieLink
                    {
                        DowloadUrl     = frm.Url,
                        Parent         = movie,
                        LinkTitle      = frm.Url,
                        PageSiteID     = scraper.Title,
                        DownloadSiteID = scraper.Title,
                    });
                    this.viewerWindow.LoadVideo(movie, true);
                }
                catch (Exception ex) {
                    KryptonMessageBox.Show(this, ex.Message,
                                           Constants.AppTitle, MessageBoxButtons.OK, MessageBoxIcon.Warning);
                }
            }
        }
Exemplo n.º 2
0
 private void openToolStripMenuItemOpenNStream_Click(object sender, EventArgs e)
 {
     var frm = new NetworkStreamForm();
     if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         try
         {
             var scraper = VideoScraperBase.GetScraper(frm.Url);
             var movie = new Movie
             {
                 Description = frm.Url,
                 Url = frm.Url,
                 Name = frm.Url,
                 ReleaseDate  =DateTime.Now
             };
             movie.Links.Add(new MovieLink
             {
                 DowloadUrl = frm.Url,
                 Parent = movie,
                 LinkTitle = frm.Url,
                 PageSiteID = scraper.Title,
                 DownloadSiteID = scraper.Title,
             });
             this.viewerWindow.LoadVideo(movie, true);
         }
         catch(Exception ex) {
             KryptonMessageBox.Show(this, ex.Message,
                 Constants.AppTitle, MessageBoxButtons.OK, MessageBoxIcon.Warning);
         }
     }
 }