예제 #1
0
        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);
        }
예제 #2
0
 /// <summary>
 /// Forces the import of the tvguide. Usable when testing the grabber
 /// </summary>
 public void ForceImport(WebEPG.ShowProgressHandler showProgress)
 {
     StartImport(showProgress);
 }