Пример #1
0
 private void GetChangeHistoryResponse(IAsyncResult result)
 {
     try
     {
         Results.Reset(((ISystemService)result.AsyncState).EndGetChangeHistory(result));
     }
     catch (Exception error)
     {
         HandleExceptionResult handler = new HandleExceptionResult(error, this.WindowManager);
         handler.Execute(new ActionExecutionContext());
     }
     finally
     {
         BusyOff();
     }
 }
Пример #2
0
 private void GetOrdersReportResponse(IAsyncResult result)
 {
     try
     {
         ServiceLib.ExecuteServiceMethod(delegate
         {
             this.Report = new PdfDocumentSource(new MemoryStream(Convert.FromBase64String(((ISampleService)result.AsyncState).EndGetOrderReportData(result))));
         });
         BusyOff();
     }
     catch (Exception error)
     {
         BusyOff();
         HandleExceptionResult handler = new HandleExceptionResult(error, this.WindowManager);
         handler.Execute(new ActionExecutionContext());
     }
 }
Пример #3
0
 public static HandleExceptionResult Display(Exception error)
 {
     var o = new HandleExceptionResult(error);
     return o;
 }