Beispiel #1
0
 private async Task OnDeleteCommandAsync(object sender)
 {
     try
     {
         var monitor = (MonitorModel)sender;
         MonitorContainers.Remove(monitor);
         await _monitorService.DeleteMonitorAsync(monitor);
     }
     catch (ServiceAuthenticationException e)
     {
         await DialogService.ShowAlertAsync(AppResources.GenericError, AppResources.Error, AppResources.OK);
     }
     catch (HttpRequestExceptionEx e)
     {
         await DialogService.ShowAlertAsync(AppResources.GenericError, AppResources.Error, AppResources.OK);
     }
     catch (Exception e)
     {
         await DialogService.ShowAlertAsync(AppResources.GenericError, AppResources.Error, AppResources.OK);
     }
 }