private ExternalRow CreateRow(TextRow tRow, ref int index) { ExternalRow row = new ExternalRow(); row.Number = index++; ColumHeader.ForEach(c => row.Cells.Add(new ExternalCell() { Column = c, Row = row, Value = tRow[c.Number - 1] })); return(row); }
private ProfileAttributesRow CreateRow(TextRow tRow, ref int index) { ProfileAttributesRow row = new ProfileAttributesRow(); row.Number = index++; ColumHeader.ForEach(c => row.Cells.Add(new ProfileAttributeCell() { Column = c, Row = row, Value = tRow[c.Number - 1] })); return(row); }
private ProfileAttributesRow CreateRow(List <ProfileAttributeCell> tRow, ref int index) { ProfileAttributesRow row = new ProfileAttributesRow(); row.Number = index++; if (tRow.Count == ColumHeader.Count) { ColumHeader.Select((c, colIndex) => new { Col = c, Index = colIndex }).ToList().ForEach(c => row.Cells.Add(ProfileAttributeCell.Update(tRow[c.Index], c.Col, row))); } else { ColumHeader.ForEach(c => row.Cells.Add(ProfileAttributeCell.Update(tRow[c.Number - 1], c, row))); } return(row); }
private ExternalRow CreateRow(List <String> tRow, ref int index) { ExternalRow row = new ExternalRow(); row.Number = index++; if (tRow.Count == ColumHeader.Count) { ColumHeader.Select((c, colIndex) => new { Col = c, Index = colIndex }).ToList().ForEach(c => row.Cells.Add(new ExternalCell() { Column = c.Col, Row = row, Value = tRow[c.Index] })); } else { ColumHeader.ForEach(c => row.Cells.Add(new ExternalCell() { Column = c, Row = row, Value = tRow[c.Number - 1] })); } return(row); }