Подчищенный код
This commit is contained in:
parent
d315bb4ef8
commit
00f691332b
@ -55,26 +55,7 @@ namespace FuelAndLubricants.Forms
|
||||
if (row.Cells["ColumnRoute"].Value == null)
|
||||
continue;
|
||||
|
||||
//string columnFullRoute = "";
|
||||
//foreach (var elem in (List<Trip_Route>)ColumnRoute.DataSource)
|
||||
//{
|
||||
// if(elem.Route_ID == (int)row.Cells["ColumnRoute"].Value)
|
||||
// {
|
||||
// columnFullRoute = elem.fullRoute;
|
||||
// break;
|
||||
// }
|
||||
//}
|
||||
|
||||
//string[] parts = columnFullRoute.Split(' ');
|
||||
|
||||
//string part1 = parts.Length > 0 ? parts[0] : string.Empty; // Берём первую часть, если есть
|
||||
//string part2 = parts.Length > 1 ? parts[1] : string.Empty; // Берём вторую часть, если есть
|
||||
|
||||
//string cellValue = row.Cells["ColumnRouteLength"].Value?.ToString();
|
||||
//float length = float.Parse(cellValue);
|
||||
|
||||
list.Add(Trip_Route.CreateElement(0, Convert.ToInt32(row.Cells["ColumnRoute"].Value)));
|
||||
//list.Add(Route.CreateEntity(0, part1, part2, length));
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user