private bool DelEvent(uint eventID)
 {
     if (eventID > 0)
     {
         return(IVXProtocol.AdpsSdk_DelEvent(m_loginIDAdps, eventID));
     }
     else
     {
         return(true);
     }
 }
        private bool DelEventBy(uint dwTaskUnitID, string szCameraID, uint dwAnalyseType)
        {
            bool ret = true;

            foreach (var item in GetAllEvents())
            {
                if (item.tEventParam.dwTaskUnitID == dwTaskUnitID && item.tEventParam.szCameraID == szCameraID && item.tEventParam.dwAnalyseType == dwAnalyseType)
                {
                    ret = ret && IVXProtocol.AdpsSdk_DelEvent(m_loginIDAdps, item.dwEventID);
                }
            }
            return(ret);
        }