Exemplo n.º 1
0
        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;
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// Navigates the frame backwards.
 /// </summary>
 public void GoBack() => _navigator.GoBack();
Exemplo n.º 3
0
 public override void Execute()
 {
     navigator.GoBack();
 }
Exemplo n.º 4
0
 private void OnRetry(object sender, RoutedEventArgs e)
 {
     _navigator.GoBack();
 }