private string[] GetCsvColumns(string filePath) { string[] retVal = null; try { retVal = _importService.GetCsvColumns(filePath, InnerItem.ColumnDelimiter); } catch (Exception) { } return(retVal); }
private string[] GetCsvColumns() { string[] retVal = null; if (_importService.Exists(InnerItem.TemplatePath)) { if (!string.IsNullOrEmpty(InnerItem.TemplatePath)) { if (InnerItem.ColumnDelimiter == "?") { InnerItem.ColumnDelimiter = _importService.GetCsvColumnsAutomatically(InnerItem.TemplatePath); } retVal = _importService.GetCsvColumns(InnerItem.TemplatePath /*csv file name*/, InnerItem.ColumnDelimiter); } } else { IsError = true; ErrorText = string.Format("File '{0}' doesn't exist".Localize(), InnerItem.TemplatePath); } return(retVal); }
private string[] GetCsvColumns(string filePath) { string[] retVal = null; retVal = _importService.GetCsvColumns(filePath, InnerItem.ColumnDelimiter); return(retVal); }