public Subtitle(string path, SubtitleArchive archive, string tvshow, string season, IList<string> numbers) : this(path, archive) { TvShow = tvshow; Season = season; Numbers = numbers; }
public Subtitle(string path, SubtitleArchive archive) : this(path) { Archive = archive; }
private void FillArchiveData(SubtitleArchive arch) { try { if (ListSourceSousTitres.SelectedIndex != -1) TboxSerieArchive.Text = arch != null ? arch.TvShow : string.Empty; TboxSaisonArchive.Text = arch != null ? arch.Season : string.Empty; TboxNumbersArchive.Text = arch != null && arch.Numbers.Count > 0 ? arch.Numbers[0] : string.Empty; } catch (Exception ex) { WriteLog(ex); } }
private void LoadSubtitlesArchives(SubtitleArchive.SubtitleSource source, string filter) { try { WriteLblCopy("Chargement de la liste des sous-titres...", false); PBarCopy.Style = ProgressBarStyle.Marquee; PBarCopy.Visible = true; ListSourceSousTitres.Items.Clear(); ListSourceSousTitres.Enabled = false; soustitresToolStripMenuItem.Enabled = false; SubtitleArchive.EmptyTemporary(); switch (source) { case SubtitleArchive.SubtitleSource.Addic7ed: GboxSourceSousTitres.Text = "Addic7ed"; break; case SubtitleArchive.SubtitleSource.Usub: GboxSourceSousTitres.Text = "U-Sub"; break; default: GboxSourceSousTitres.Text = "Sous-Titres.eu"; break; } ListDictionary param = new ListDictionary(); param.Add("form", this); param.Add("what", source); param.Add("filter", filter); Thread th = new Thread(new ParameterizedThreadStart(LoadSubtitlesArchivesThread)); th.Start(param); } catch (Exception ex) { WriteLog(ex); } }