internal void OnRouteStationChanged(BusRoute route, int routeVariant, RouteBeginTime.ScheduleDays scheduleDays, RouteStationViewModel stationViewModel) { TimeAdjustmentsForSelection = TimeAdjustments.Where(item => item.RouteBeginTime.RouteId == route.Id && item.RouteBeginTime.RouteVariant == routeVariant && item.RouteBeginTime.Days == scheduleDays && item.StationId == stationViewModel.BusStation.Id).ToList(); OnPropertyChanged(nameof(TimeAdjustmentsForSelection)); }
internal IEnumerable <TimeAdjustmentViewModel> GetTimeAdjustmentsForRouteVariant(BusRoute route, int routeVariant, RouteBeginTime.ScheduleDays scheduleDays) { return(TimeAdjustments.Where(item => item.RouteBeginTime.RouteId == route.Id && item.RouteBeginTime.RouteVariant == routeVariant && item.RouteBeginTime.Days == scheduleDays)); }