Esempio n. 1
0
 public FilteredForm(SeriesDb db, string query, Func <IEnumerable <Series> > getResult)
 {
     this.db        = db;
     this.getResult = getResult;
     InitializeComponent();
     Text = $"Search : {query}";
 }
Esempio n. 2
0
 public SeriesDbTests()
 {
     db = new SeriesDb();
     for (int i = 0; i < 20; i++)
     {
         var s = new Series
         {
             Name     = $"Test{(i + rand(byte.MinValue, ushort.MaxValue))}{new string('*', 6)}",
             Status   = TvSeriesLogsDb.Helper.SeenStatus.Seeing,
             Seasons  = rand(1, 100),
             Schedule = null,
             Detail   = null,
         };
         db.Add(s);
         list.Add(s);
     }
 }
Esempio n. 3
0
 public FilterPrompt(SeriesDb db)
 {
     this.db = db;
     InitializeComponent();
 }
Esempio n. 4
0
 public FavoritesForm(SeriesDb db, Func <IEnumerable <Series> > getResult)
 {
     this.db        = db;
     this.getResult = getResult;
     InitializeComponent();
 }
Esempio n. 5
0
 public MainForm()
 {
     db = new SeriesDb();
     InitializeComponent();
 }
Esempio n. 6
0
 public InfoForm(Series series, SeriesDb db)
 {
     InitializeComponent();
     this.db     = db;
     this.series = series;
 }
Esempio n. 7
0
 public void OnFormShown(SeriesDb db) => this.db = db;