private void onRestFeatureSelect(string shape) { if (_seaCheatAnalyzeArea != null) { this.Children.Remove(_seaCheatAnalyzeArea); } _seaCheatAnalyzeArea = null; if (!string.IsNullOrWhiteSpace(shape))//无效字符,表示无区域 { var region = RadarRegionFromString.GetRegion(shape); _seaCheatAnalyzeArea = new PlottingArea(_locatorBorder.Locator, region); _seaCheatAnalyzeArea.PolygonOpacity = 0.5; _seaCheatAnalyzeArea.PlotStatus = PlottingStatus.锁定模式; _seaCheatAnalyzeArea.MoveToCentered(); this.Children.Add(_seaCheatAnalyzeArea); } }