private static void _SetResults(RouteResult result) { Debug.Assert(result != null); Route route = result.Route; route.Cost = result.Cost; route.StartTime = result.StartTime; route.EndTime = result.EndTime; route.Overtime = result.Overtime; route.TotalTime = result.TotalTime; route.TotalDistance = result.TotalDistance; route.TravelTime = result.TravelTime; route.ViolationTime = result.ViolationTime; route.WaitTime = result.WaitTime; route.IsLocked = result.IsLocked; route.Capacities = result.Capacities; foreach (StopData stopData in result.Stops) { route.Stops.Add(Stop.CreateFromData(stopData)); } }