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); } }
private static void StartThread(object o) { ConvertWorkerThread t = (ConvertWorkerThread)o; t.StartThread(); }