Example #1
0
        public void StopScanWithScanResult(XRayScanResult result)
        {
            try
            {
                if (!String.IsNullOrWhiteSpace(result.mImagePath))
                {
                    GetCaseManager().getLiveCase(result.mCaseId).setImageName(result.mImagePath);
                }
                else
                {
                    result.mImagePath = "";
                }

                GetScanManager().onStopScanWithScanResult(result);
            }
            catch (l3.cargo.corba.CargoException ex)
            {
                throw new Exception(ex.error_msg, ex.InnerException);
            }
            catch (omg.org.CORBA.INTERNAL ex)
            {
                throw new Exception(ex.Message, ex.InnerException);
            }
            catch (System.Reflection.TargetInvocationException ex)
            {
                throw new Exception(ex.Message, ex.InnerException);
            }
            catch (AbstractCORBASystemException ex)
            {
                throw new Exception(ex.Message, ex.InnerException);
            }
        }
Example #2
0
 public void StopScanWithScanResult(XRayScanResult result)
 {
     try
     {
         if (!String.IsNullOrWhiteSpace(result.mImagePath))
             GetCaseManager().getLiveCase(result.mCaseId).setImageName(result.mImagePath);
         else
             result.mImagePath = string.Empty;
         GetScanManager().onStopScanWithScanResult(result);
     }
     catch (l3.cargo.corba.CargoException ex) { throw new Exception(ex.error_msg, ex.InnerException); }
     catch (omg.org.CORBA.INTERNAL ex) { throw new Exception(ex.Message, ex.InnerException); }
     catch (System.Reflection.TargetInvocationException ex) { throw new Exception(ex.Message, ex.InnerException); }
     catch (AbstractCORBASystemException ex) { throw new Exception(ex.Message, ex.InnerException); }
 }