private async void LoadAirlines() { IsBusy = true; try { AirlinesInternalCollection.Clear(); var fares = await _faresSearchProcess.GetAirlines(_filter); fares.ForEach(fare => AirlinesInternalCollection.Add(CastAirlineModel(fare))); } catch (BusinessException ex) { MessageBox.Show(ex.Message); _navigator.GoBack(); } catch (СommunicationException ex) { MessageBox.Show(ex.Message); _navigator.GoBack(); } finally { IsBusy = false; } }
/// <summary> /// Navigates the frame backwards. /// </summary> public void GoBack() => _navigator.GoBack();
public override void Execute() { navigator.GoBack(); }
private void OnRetry(object sender, RoutedEventArgs e) { _navigator.GoBack(); }