Exemple #1
0
 public virtual void OnDisappearing(IViewModel viewModel)
 {
     if (viewModel != null && !IsSideMenuViewModel(viewModel))
     {
         try
         {
             viewModel.BecameInvisible();
         }
         catch (Exception e)
         {
             if (!viewModel.HandleException(e, () => OnDisappearing(viewModel), () => OnCancel(viewModel)))
             {
                 throw;
             }
         }
     }
 }
Exemple #2
0
 public virtual void DidEnterBackground(IViewModel viewModel)
 {
     viewModel?.BecameInvisible();
 }