private static (StructureOfExcelFile structure, string settingsError) GetStructureOfExcelFile()
        {
            var excelStruct = new StructureOfExcelFile(
                Properties.Settings.Default.WorkBreakDownSheet,
                Properties.Settings.Default.RowKeyColumn,
                Properties.Settings.Default.EstimatedffortColumn,
                Properties.Settings.Default.FirstDataRow,
                Properties.Settings.Default.DescriptionColumnFailback,
                Properties.Settings.Default.ParentRowsColumn);

            if (excelStruct.Valid)
            {
                return(excelStruct, string.Empty);
            }

            return(null, excelStruct.FirstError);
        }
Exemple #2
0
 public ExcelReader(StructureOfExcelFile excelFileDescriptor, string excelFileName = c_excelFileName)
 {
     _file = excelFileName;
     _structureOfExcelFile = excelFileDescriptor;
 }