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); } }
private void SearchForLine(MessageTypes.LineSearchRequested args) { if (args.Source == typeof(StopSearchContentViewModel)) { _interceptedBackButtonDestination = SelectedPivot; } SelectedPivot = _linesSearchViewModel; _linesSearchViewModel.GetLinesByIdAsync(args.Line.GtfsId).DoNotAwait(); }