コード例 #1
0
 public void ProcessMessage(FogLocationModel Location)
 {
     CheckedRadars = new ObservableCollection <AssetsViewDTO>();
     Latitude      = Location.Latitude;
     Longitude     = Location.Longitude;
     GetAllRadarsAroundPoint();
 }
コード例 #2
0
        public void ProcessMessage(FogLocationModel Location)
        {
            Latitude  = Location.Latitude;
            Longitude = Location.Longitude;

            SOPSource = SOPSources.Fog;

            GetAllPatrolsAroundPoint();
        }
        private void GetAllPatrolsAroundPoint(FogLocationModel FogLocation)
        {
            var client = new ServiceLayerClient();

            var task = client.GetNearByPatrolsByLatLonAsync(FogLocation.Longitude, FogLocation.Latitude, 5);
            var obs  = task.ToObservable();

            obs.Subscribe((x) => AddNearPatrols(x == null ? new List <PatrolLastLocationDTO>() : x.ToList()));
        }
        public void ProcessMessage(FogLocationModel Location)
        {
            var vm = DataContext as SmartTowersListActionPanelViewModel;

            if (vm == null)
            {
                return;
            }

            vm.SetViewModelData(Location);
        }
コード例 #5
0
        public void ProcessMessage(FogLocationModel LocationModel)
        {
            var vm = DataContext as PatrolCamerasListActionPanelViewModel;

            if (vm == null)
            {
                return;
            }

            vm.SetViewModelData(LocationModel);
        }
コード例 #6
0
 public void SetViewModelData(FogLocationModel Location)
 {
     Handle(Location.Latitude, Location.Longitude);
 }
 public void SetViewModelData(FogLocationModel FogLocation)
 {
     GetAllPatrolsAroundPoint(FogLocation);
 }