private void HighlightRoutes(IEnumerable <Route> routes) { foreach (var routeVM in RouteList.Join(routes, routeVM => routeVM.Route, route => route, (routeVM, route) => routeVM, directionlessRouteComparer)) { routeVM.IsHighlighted = true; } }
private void HighlightRoutes(IEnumerable <Route> routes) { foreach (var routeVM in RouteList.Join(routes, routeVM => routeVM.Route, route => route, (routeVM, route) => routeVM, directionlessRouteComparer)) { routeVM.IsHighlighted = true; } }