Ejemplo n.º 1
0
 public bool DelRealAnalyse(uint analyseID)
 {
     if (analyseID > 0)
     {
         var ana = IVXProtocol.IasSdk_GetRTAnalysisInfoByID(m_loginID, analyseID);
         if (ana != null)
         {
             AdpsEventService.DelEventBy(ana.realAnalyseParam.dwAnalysisPlanID, ana.realAnalyseParam.realCameraInfo.szCameraID, Convert.ToUInt32(ana.realAnalyseParam.eAlgthmType));
         }
         IVXProtocol.IasSdk_DelAnalysis(m_loginID, analyseID);
         if (AnalyseDeleted != null)
         {
             AnalyseDeleted(analyseID, null);
         }
         return(true);
     }
     else
     {
         if (AnalyseDeleted != null)
         {
             AnalyseDeleted(analyseID, null);
         }
         return(true);
     }
 }
 private bool DelRealAnalyse(uint analyseID)
 {
     if (analyseID > 0)
     {
         var ana = IVXProtocol.IasSdk_GetRTAnalysisInfoByID(m_loginIDRias, analyseID);
         if (ana != null)
         {
             DelEventBy(ana.realAnalyseParam.dwAnalysisPlanID, ana.realAnalyseParam.realCameraInfo.szCameraID, Convert.ToUInt32(ana.realAnalyseParam.eAlgthmType));
         }
         IVXProtocol.IasSdk_DelAnalysis(m_loginIDRias, analyseID);
         return(true);
     }
     else
     {
         return(true);
     }
 }