private void DrawPolygons(GRegion regions) { GRegion _tmp = regions; List <Point> logPnts = new List <Point>(); this.GraphicsLayer.MapContainer.Refresh(); for (int i = 0; i < _tmp.Rings.Length; i++) { logPnts = GetLogPnts(_tmp.Rings[i]); IMSPolygon polygon = new IMSPolygon(ZDIMS.Interface.CoordinateType.Logic); this.GraphicsLayer.AddGraphics(polygon); this.GraphicsLayer.MapContainer.Refresh(); polygon.StrokeThickness = 1; // polygon.Shape.Fill = new SolidColorBrush(Colors.Red);// new SolidColorBrush(t.ToColor("#ee0000")); polygon.Points = logPnts; polygon.Flicker(); polygon.FlickerOverCallback += new GraphicsFlickerOverDelegate(fickerover); } }