Beispiel #1
0
 public void SetRadarInfo(RadarConfig radarConfig)
 {
     if (radarConfig != null)
     {
         _configClient.SetRadarConfig(radarConfig);
     }
 }
Beispiel #2
0
 public void SetRadarConfig(RadarConfig radarConfig)
 {
     if (CompareTypeValue.AreEqual(radarConfig, RadarStatus))
     {
         return;
     }
     resetRadarStatusFromRadarConfigChanged(radarConfig);
     FirePropertyChanged("RadarConfigChanged");
 }
 public void SetRadarConfig(RadarConfig radarConfig)
 {
     try
     {
         if (_radarInfomation != null)
         {
             _radarInfomation.SetRadarInfo(radarConfig);
             IsLinking = true;
         }
     }
     catch
     {
         IsLinking = false;
     }
 }
Beispiel #4
0
        private void resetRadarStatusFromRadarConfigChanged(RadarConfig radarConfig)
        {
            if (radarConfig == null)
            {
                return;
            }
            var radarStatusInfo = RadarStatus;

            radarStatusInfo.Name           = radarConfig.Name;
            radarStatusInfo.Longitude      = radarConfig.Longitude;
            radarStatusInfo.Latitude       = radarConfig.Latitude;
            radarStatusInfo.Altitude       = radarConfig.Altitude;
            radarStatusInfo.StartScanAngle = radarConfig.StartScanAngle;
            radarStatusInfo.StartRange     = radarConfig.StartRange;
            radarStatusInfo.Range          = radarConfig.Range;
            radarStatusInfo.OffsetAngle    = radarConfig.OffsetAngle;
            _radarStatus = radarStatusInfo;
        }
Beispiel #5
0
 public void SetRadarConfigFromClient(RadarConfig radarConfig)
 {
     resetRadarStatusFromRadarConfigChanged(radarConfig);
     FirePropertyChanged("RadarConfigChangedFromClient");
 }