Download MovieTube.Viewer/Forms/DBUpdatedForm.cs from niobures/VideoSearch: direct link, hf CLI and curl.
- Browser
- Download file 851 Bytes
-
https://huggingface.co/niobures/VideoSearch/resolve/main/MovieTube.Viewer/Forms/DBUpdatedForm.cs
- Command line
-
hf download hf://niobures/VideoSearch/MovieTube.Viewer/Forms/DBUpdatedForm.cs
-
curl -L -o DBUpdatedForm.cs https://huggingface.co/niobures/VideoSearch/resolve/main/MovieTube.Viewer/Forms/DBUpdatedForm.cs
851 Bytes
| using System; | |
| using System.Collections.Generic; | |
| using System.ComponentModel; | |
| using System.Data; | |
| using System.Drawing; | |
| using System.Text; | |
| using System.Windows.Forms; | |
| using MovieTube.Client.Scraper; | |
| using System.Linq; | |
| namespace MovieTube.Viewer | |
| { | |
| public partial class DBUpdatedForm : Form | |
| { | |
| public DBUpdatedForm() | |
| { | |
| InitializeComponent(); | |
| this.browseGalleryWidget1.ShowHeader = false; | |
| } | |
| public void ShowMe(List<Movie> movies) | |
| { | |
| this.browseGalleryWidget1.AddItems(new MoviePage{ | |
| Videos = movies.Where(x => x.ModifiedDate == null).Take(15).ToList() | |
| }); | |
| this.dataGridView1.DataSource = movies.Where(x => x.ModifiedDate != null).Take(25).ToList(); | |
| this.ShowDialog(); | |
| } | |
| } | |
| } | |