protected void StartImport(WebEPG.ShowProgressHandler showProgress) { if (_workerThreadRunning) { return; } _workerThreadRunning = true; ThreadParams param = new ThreadParams(); param.showProgress = showProgress; Thread workerThread = new Thread(new ParameterizedThreadStart(ThreadFunctionImportTVGuide)); workerThread.Name = "WebEPGImporter"; workerThread.IsBackground = true; workerThread.Priority = ThreadPriority.Lowest; workerThread.Start(param); }
/// <summary> /// Forces the import of the tvguide. Usable when testing the grabber /// </summary> public void ForceImport(WebEPG.ShowProgressHandler showProgress) { StartImport(showProgress); }