コード例 #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();
        }