public TData ImportData(string path, ImportType type, DataAnalysisCSVFormat csvFormat) { TableFileParser csvFileParser = new TableFileParser(); csvFileParser.Parse(path, csvFormat.NumberFormatInfo, csvFormat.DateTimeFormatInfo, csvFormat.Separator, csvFormat.VariableNamesAvailable); return(ImportData(path, type, csvFileParser)); }
public TData ImportData(string path, ImportType type, DataAnalysisCSVFormat csvFormat) { TableFileParser csvFileParser = new TableFileParser(); long fileSize = new FileInfo(path).Length; csvFileParser.ProgressChanged += (sender, e) => { OnProgressChanged(e / (double)fileSize); }; csvFileParser.Parse(path, csvFormat.NumberFormatInfo, csvFormat.DateTimeFormatInfo, csvFormat.Separator, csvFormat.VariableNamesAvailable); return(ImportData(path, type, csvFileParser)); }