public void ProcessMessage(FogLocationModel Location) { CheckedRadars = new ObservableCollection <AssetsViewDTO>(); Latitude = Location.Latitude; Longitude = Location.Longitude; GetAllRadarsAroundPoint(); }
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); }
public void ProcessMessage(FogLocationModel LocationModel) { var vm = DataContext as PatrolCamerasListActionPanelViewModel; if (vm == null) { return; } vm.SetViewModelData(LocationModel); }
public void SetViewModelData(FogLocationModel Location) { Handle(Location.Latitude, Location.Longitude); }
public void SetViewModelData(FogLocationModel FogLocation) { GetAllPatrolsAroundPoint(FogLocation); }