private CSVTableParser UpdateCsvtpFromTd(TableData tableData, CSVTableParser tableParser) { tableParser.Rows.RemoveRange(0, tableParser.Rows.Count); for (int index = 0; index < tableData.Rows.Count; index++) { var row = tableData.Rows[index]; tableParser.Rows.Add(new Row()); tableParser.Rows[index].Cell["MassDolom"] = row.MassDolom; tableParser.Rows[index].Cell["MassDolomS"] = row.MassDolomS; tableParser.Rows[index].Cell["MassFOM"] = row.MassFOM; tableParser.Rows[index].Cell["MassHotIron"] = row.MassHotIron; tableParser.Rows[index].Cell["MassLime"] = row.MassLime; tableParser.Rows[index].Cell["MassScrap"] = row.MassScrap; tableParser.Rows[index].Cell["MaxSiHotIron"] = row.MaxSiHotIron; tableParser.Rows[index].Cell["MaxTHotIron"] = row.MaxTHotIron; tableParser.Rows[index].Cell["MinSiHotIron"] = row.MinSiHotIron; tableParser.Rows[index].Cell["MinTHotIron"] = row.MinTHotIron; tableParser.Rows[index].Cell["UVSMassDolom"] = row.UVSMassDolom; tableParser.Rows[index].Cell["UVSMassFOM"] = row.UVSMassFOM; } return tableParser; }
private TableData CsvtpToTD(CSVTableParser table) { var tableOut = new TableData(); foreach (var row in table.Rows) { tableOut.Rows.Add(new TableRow() { MassDolom = (double) row.Cell["MassDolom"], MassDolomS = (double) row.Cell["MassDolomS"], MassFOM = (double) row.Cell["MassFOM"], MassHotIron = (double) row.Cell["MassHotIron"], MassLime = (double) row.Cell["MassLime"], MassScrap = (double) row.Cell["MassScrap"], MaxSiHotIron = (double) row.Cell["MaxSiHotIron"], MaxTHotIron = (double) row.Cell["MaxTHotIron"], MinSiHotIron = (double) row.Cell["MinSiHotIron"], MinTHotIron = (double) row.Cell["MinTHotIron"], UVSMassDolom = (double) row.Cell["UVSMassDolom"], UVSMassFOM = (double) row.Cell["UVSMassFOM"] }); } return tableOut; }