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());
     }
 }
 public static HandleExceptionResult Display(Exception error)
 {
     var o = new HandleExceptionResult(error);
     return o;
 }