private bool ExitGraphicRing(GisStructs.MapUnits mapUnits) { bool result = false; try { // New position of the circle's center. MapPoint pointGeometry = new MapPoint(mapUnits.Longitude, mapUnits.Latitude); if (_ringRange_GO == null) { Logger.Error("There is not a GraphicsOverlay for:" + mapUnits.UnitTypes.ToString()); ; return result; } var graphics = _ringRange_GO.Graphics.Where(g => (int)g.Attributes["ORDER"] == mapUnits.Order && g.Attributes["TYPE"].ToString() == "RING"); int x = graphics.Count(); foreach (var graphic in graphics) { // RANGE has the diamter of the circle from the center pointGeometry. graphic.Geometry = MakeEllipseGeometry(pointGeometry, (int)graphic.Attributes["RANGE"]); result = true; } return result; } catch (Exception ex) { Logger.Error("Error:" + ex.Message + "-" + mapUnits.UnitTypes.ToString()); return result; } }