public PeakImporterFromText(string filename, BackgroundWorker bw) { if (!File.Exists(filename)) { throw new IOException("PeakImporter failed. File doesn't exist: " + DiagnosticUtilities.GetFullPathSafe(filename)); } var fi = new FileInfo(filename); numRecords = (int)(fi.Length / 1000 * 24); // a way of approximating how many peaks there are... only for use with the backgroundWorker _filename = filename; _delimiter = '\t'; backgroundWorker = bw; peakProgressInfo = new PeakProgressInfo(); }
public PeakDetectAndExportWorkflow(Run run, PeakDetectAndExportWorkflowParameters parameters, BackgroundWorker bw) : this(run, parameters) { backgroundWorker = bw; peakProgressInfo = new PeakProgressInfo(); }