public void PerformSurveyImport(ModelImportStatus mos, System.IO.Stream bmFileStream, System.IO.Stream ffFileStream, ImportDataMap importMap, System.ComponentModel.BackgroundWorker backgroundWorker, Guid NKDProjectID, string connString, int numLines, bool doOverwrite, bool checkForDuplicates) { this.currentWorker = backgroundWorker; // talk to the import lib to do the import DateTime startTime = DateTime.Now; int batchSize = 100; //UpdateStatus("Creating new NKD block model", 20.0); ImportUtils.SurveyImport surImp = null; surImp = new ImportUtils.SurveyImport(); surImp.AddSurveyData(mos, bmFileStream, importMap, batchSize, UpdateStatus, numLines, connString, NKDProjectID, doOverwrite, checkForDuplicates); }