Exemple #1
0
        // 查询----线程函数
        private void SearchTrafficEventTh(object VmBaseObj)
        {
            SearchViewModelBase vm = (SearchViewModelBase)VmBaseObj;
            string CameraID        = vm.TraffficCameraId;
            List <TrafficFluxStatisticInfo> trafficInfoList = vm.SearchTrafficFluxStatistic(vm.TraffficCameraId, vm.BeginTimeSec, vm.EndTimeSec, vm.TimeInterval);

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