Exemplo n.º 1
0
        /// <summary>
        /// Navigates to the route details of the select route
        /// </summary>
        /// <param name="selectedRouteItemViewModel"></param>
        private void NavigateToRoute(RoutesOverviewListItemViewModel selectedRouteItemViewModel)
        {
            if (selectedRouteItemViewModel == null)
            {
                return;
            }

            var route = selectedRouteItemViewModel.Route;

            Navigation.PushAsync(new RouteDetailsPageViewModel(route));
        }
Exemplo n.º 2
0
        /// <summary>
        /// Navigates to the route details of the select route
        /// </summary>
        /// <param name="selectedRouteItemViewModel"></param>
        private void NavigateToRoute(RoutesOverviewListItemViewModel selectedRouteItemViewModel)
        {
            if (selectedRouteItemViewModel == null)
            {
                return;
            }

            var route = selectedRouteItemViewModel.Route;

            if (!route.DetailsDataLoaded || route.Waypoints.Count == 0)
            {
                return;
            }

            Navigation.PushAsync(new RouteDetailsPageViewModel(route));
        }