Пример #1
0
 private void updateShowRadarStatus()
 {
     if (RadarStatus != null && _locator.InScreenAtCircle(RadarStatus.Longitude, RadarStatus.Latitude, RadarStatus.Range / 60))
     {
         Visibility = System.Windows.Visibility.Visible;
     }
     else
     {
         Visibility = System.Windows.Visibility.Collapsed;
     }
 }
Пример #2
0
 private void update(CCTVCanvas cctv)
 {
     this.Dispatcher.BeginInvoke((Action) delegate()
     {
         if (_locator.InScreenAtCircle(cctv.Video.PanTiltUnit.Longitude, cctv.Video.PanTiltUnit.Latitude, CCTVCanvas.maxrange))
         {
             cctv.OnMapRefreshed();
             cctv.Visibility = System.Windows.Visibility.Visible;
         }
         else
         {
             cctv.Visibility = System.Windows.Visibility.Collapsed;
         }
     });
 }