Ejemplo n.º 1
0
 /// <summary>
 /// This method Loads all the objects to display in the List
 /// </summary>
 protected virtual async Task LoadAll()
 {
     try
     {
         await RunMethodAsync(() =>
         {
             var allrequests = service.GetAll() ?? new List <T>();
             AllObjects      = new ObservableCollection <T>(allrequests);
         }, () => IsBusy);
     }
     catch (Exception e)
     {
         toaster.ShowErrorToast(Toaster.ErrorTitle, e.Message);
     }
 }