Пример #1
0
 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;
 }
Пример #2
0
        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;
        }
Пример #3
0
        public DownloadProgress(CacheUpdater doc)
        {
            InitializeComponent();

            mDoc = doc;
        }