Example #1
0
        // TODO Probably redundant, since the keys should be with capital L.
        void TimelineManager_FocusTimeThrottled(object sender, csShared.Interfaces.TimeEventArgs e)
        {
            ThreadPool.QueueUserWorkItem(delegate
            {
                if (Poi.Sensors.ContainsKey("[lat]") && Poi.Sensors.ContainsKey("[lon]"))
                {
                    Execute.OnUIThread(() =>
                    {
                        Poi.Position.Latitude = Poi.Sensors["[lat]"].FocusValue;
                        Poi.Position.Longitude = Poi.Sensors["[lon]"].FocusValue;
                        Poi.TriggerPositionChanged();
                        //UpdateTrackPath();
                    });

                }
            });

        }
Example #2
0
 void ViewDef_GeoPointerAdded(object sender, csShared.Geo.GeoPointerArgs e)
 {
     GeoPoint = map.emMain.MapToScreen(e.Position, true);
     if (e.PointerBrush != null) GeoPointerBrush = e.PointerBrush;
     GeoPointerVisible = true;
     var tm = new DispatcherTimer();
     tm.Tick += delegate
     {
         GeoPointerVisible = false;
         tm.Stop();
     };
     tm.Interval = e.Duration;
     tm.Start();
 }
Example #3
0
 private void TimelineManager_FocusTimeUpdated(object sender, csShared.Interfaces.TimeEventArgs e)
 {
     //UpdateCallOut();
     lock (_lock)
         UpdateSensorMetaLabels();
 }