示例#1
0
        private void AddNearRadars(List <AssetsViewDTO> Radars)
        {
            Application.Current.Dispatcher.Invoke(() =>
            {
                foreach (var radar in Radars)
                {
                    if (radar.ItemCategoryId != null && radar.ItemStatusId != null)
                    {
                        radar.ItemImage = SOPHelper.GetAssetImageUrl((AssetTypesEnum)radar.ItemCategoryId, (AssetStatusEnum)radar.ItemStatusId);
                    }
                    radar.ImgCheckedSource = "../images/false.png";

                    RadarsList.Add(radar);
                }
            });
        }
        private void AddNearTowers(List <AssetsViewDTO> Towers)
        {
            Application.Current.Dispatcher.Invoke(() =>
            {
                foreach (var tower in Towers)
                {
                    if (tower.ItemCategoryId != null && tower.ItemStatusId != null)
                    {
                        tower.ItemImage = SOPHelper.GetAssetImageUrl((AssetTypesEnum)tower.ItemCategoryId, (AssetStatusEnum)tower.ItemStatusId);
                    }
                    tower.ImgCheckedSource = "../images/false.png";

                    TowersList.Add(tower);
                }
            });
        }
        private void AddNearCameras(List <AssetsViewDTO> Cameras)
        {
            Application.Current.Dispatcher.Invoke(() =>
            {
                foreach (var camera in Cameras)
                {
                    if (camera.ItemCategoryId != null && camera.ItemStatusId != null)
                    {
                        camera.ItemImage = SOPHelper.GetAssetImageUrl((AssetTypesEnum)camera.ItemCategoryId, (AssetStatusEnum)camera.ItemStatusId);
                    }

                    camera.ImgCheckedSource = "../images/false.png";

                    CamerasList.Add(camera);
                }
            });
        }