private static bool ExtractSourceFiles(BackgroundWorker backgroundWorker) { OutputMg.OutputHeader1(backgroundWorker, "Step 2", "Extract Source File"); OutputMg.OutputContent(backgroundWorker, "Start to count number under " + FileMg.AutoSourceFileDir); int sourceFileNumber = FileMg.CountFileNumber(FileMg.AutoSourceFileDir); OutputMg.OutputContent(backgroundWorker, "Finished counting. Total file number is: " + sourceFileNumber); OutputMg.OutputContent(backgroundWorker, "Start to extract files"); ExtractMg.ExtractFile(FileMg.AutoSourceFileDir, FileMg.AutoExtractTextFileDir, FileMg.AutoCleanTextFileDir, FileMg.AutoSemiCleanTextFileDir, FileMg.AutoTmtDataFileDir + Constants.TmtInputFileName, backgroundWorker); OutputMg.OutputContent(backgroundWorker, "Finished extracting files"); return(true); }
private void ExtractFile_DoWork(object sender, DoWorkEventArgs e) { ExtractMg.ExtractFile(FileMg.AutoSourceFileDir, FileMg.AutoExtractTextFileDir, FileMg.AutoCleanTextFileDir, FileMg.AutoSemiCleanTextFileDir, FileMg.AutoTmtDataFileDir + Constants.TmtInputFileName, backgroundWorker); }
private void ExtractFile_DoWork(object sender, DoWorkEventArgs e) { ExtractMg.ExtractFile(FileMg.ManualSourceFileDir, FileMg.ManualExtractTextFileDir, FileMg.ManualCleanTextFileDir, FileMg.ManualSemiCleanTextFileDir, null, backgroundWorker); }