Exemplo n.º 1
0
 private void SearchLine(MessageTypes.LineSearchRequested lineSearchMessage)
 {
     // We don't want to intercept messages coming from the SearchPage!
     if (lineSearchMessage.Source == typeof(TripResultViewModel))
     {
         NavigationService.NavigateAsync(typeof(SearchPage), lineSearchMessage);
     }
 }
Exemplo n.º 2
0
        private void SearchForLine(MessageTypes.LineSearchRequested args)
        {
            if (args.Source == typeof(StopSearchContentViewModel))
            {
                _interceptedBackButtonDestination = SelectedPivot;
            }

            SelectedPivot = _linesSearchViewModel;
            _linesSearchViewModel.GetLinesByIdAsync(args.Line.GtfsId).DoNotAwait();
        }