public DownloadProgress(CacheUpdater doc, CancellationTokenSource cts) { InitializeComponent(); mDoc = doc; token = cts; tmrUpdate.Start(); newTimer = new System.Timers.Timer(100); newTimer.Elapsed += NewTimerOnElapsed; newTimer.SynchronizingObject = this; newTimer.AutoReset = true; }
public TVDoc([CanBeNull] FileInfo settingsFile, CommandLineArgs args) { Args = args; Library = new ShowLibrary(); CurrentStats = new TVRenameStats(); actionManager = new ActionEngine(CurrentStats); cacheManager = new CacheUpdater(); localFinders = new FindMissingEpisodesLocally(this); downloadFinders = new FindMissingEpisodesDownloading(this); searchFinders = new FindMissingEpisodesSearch(this); mDirty = false; TheActionList = new ItemList(); scanProgDlg = null; downloadIdentifiers = new DownloadIdentifiersController(); LoadOk = (settingsFile is null || LoadXMLSettings(settingsFile)) && TheTVDB.Instance.LoadOk; }
public DownloadProgress(CacheUpdater doc) { InitializeComponent(); mDoc = doc; }