예제 #1
0
        // 查询----线程函数
        private void SearchTrafficEventTh(object VmBaseObj)
        {
            SearchViewModelBase vm = (SearchViewModelBase)VmBaseObj;
            string CameraID        = vm.BehaviorCameraId;
            List <BehaviorInfo> behaviorInfoList = vm.SearchBehaviorHistoryEvent(vm.BehaviorCameraId, vm.BeginTimeSec, vm.EndTimeSec, vm.EventTypeList);

            // 超时之后 不做处理
            if (m_OverTime)
            {
                return;
            }
            // if trafficInfoList== null 或者 count ==0
            else
            {
                //添加数据
                lock (m_lockVar)
                {
                    if (null != behaviorInfoList)
                    {
                        m_BehaviorInfoListSum.AddRange(behaviorInfoList);
                    }
                    m_DicBehaviorEvent[CameraID] = true;
                }
            }
        }