Ejemplo n.º 1
0
        /// <summary>
        /// The methods provided in this section are simply used to allow
        /// NavigationHelper to respond to the page's navigation methods.
        /// <para>
        /// Page specific logic should be placed in event handlers for the
        /// <see cref="NavigationHelper.LoadState"/>
        /// and <see cref="NavigationHelper.SaveState"/>.
        /// The navigation parameter is available in the LoadState method
        /// in addition to page state preserved during an earlier session.
        /// </para>
        /// </summary>
        /// <param name="e">Provides data for navigation methods and event
        /// handlers that cannot cancel the navigation request.</param>
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            VehiclesPayload vp = (VehiclesPayload)e.Parameter;

            Service          = vp.Service;
            this.DataContext = Service;

            getVehiclesInfo();
            getStopsInfo();

            StartTimers();

            this.navigationHelper.OnNavigatedTo(e);
        }
Ejemplo n.º 2
0
        private void searchResults_ItemClick(object sender, ItemClickEventArgs e)
        {
            VehiclesPayload v = new VehiclesPayload(currentStopId, (Service)e.ClickedItem);

            Frame.Navigate(typeof(VehiclesNoStop), v);
        }
Ejemplo n.º 3
0
        private void predictions_ItemClick(object sender, ItemClickEventArgs e)
        {
            VehiclesPayload v = new VehiclesPayload(currentStopId, (Service)e.ClickedItem);

            Frame.Navigate(typeof(Vehicles), v);
        }