Пример #1
0
 void ThreadedConvert()
 {
     try
     {
         SetBusy(true);
         if (!isClosing && (convertWorker == null || !convertWorker.IsAlive))
         {
             PrepareForWorker();
             ClearListViewStatuses();
             List <FileConvertItem> files = GetSourceFileListData();
             convertWorker                   = new ConvertWorkerThread(this, sphFormAvailable, files, textBoxDestination.Text);
             convertWorker.OnFinish         += convertWorker_OnFinish;
             convertWorker.OnListItemUpdate += convertWorker_OnListItemUpdate;
             workerId = convertWorker.Id;
             convertWorker.Start();
         }
     }
     catch
     {
         SetBusy(false);
     }
 }
Пример #2
0
        private static void StartThread(object o)
        {
            ConvertWorkerThread t = (ConvertWorkerThread)o;

            t.StartThread();
        }