Exemple #1
0
 protected void OnRendererClassBreaksChanged(RendererClassBreaksCountChangedEventArgs args)
 {
     if (RendererClassBreaksChanged != null)
     {
         RendererClassBreaksChanged(this, args);
     }
 }
        void optionsConfigControl_RendererClassBreaksChanged(object sender, RendererClassBreaksCountChangedEventArgs e)
        {
            GraphicsLayer graphicsLayer = Layer as GraphicsLayer;

            if (graphicsLayer == null)
            {
                return;
            }

            graphicsLayer.RegenerateClassBreaksOnCountChanged((int)e.Value);
            refreshLayer();

            ClassBreaksRendererOptionsConfigControl rendererOptions = sender as ClassBreaksRendererOptionsConfigControl;

            if (rendererOptions != null) // refresh the renderer
            {
                rendererOptions.ClassBreaksRenderer = graphicsLayer.Renderer as ClassBreaksRenderer;
            }

            createClassBreaksRendererSymbolsConfigControl(graphicsLayer.Renderer as ClassBreaksRenderer);
        }
        void optionsConfigControl_RendererClassBreaksChanged(object sender, RendererClassBreaksCountChangedEventArgs e)
        {
            GraphicsLayer graphicsLayer = Layer as GraphicsLayer;
            if (graphicsLayer == null)
                return;

            graphicsLayer.RegenerateClassBreaksOnCountChanged((int)e.Value);
            refreshLayer();

            ClassBreaksRendererOptionsConfigControl rendererOptions = sender as ClassBreaksRendererOptionsConfigControl;
            if (rendererOptions != null) // refresh the renderer
                rendererOptions.ClassBreaksRenderer = graphicsLayer.Renderer as ClassBreaksRenderer;

            createClassBreaksRendererSymbolsConfigControl(graphicsLayer.Renderer as ClassBreaksRenderer);
        }
 protected void OnRendererClassBreaksChanged(RendererClassBreaksCountChangedEventArgs args)
 {
     if (RendererClassBreaksChanged != null)
         RendererClassBreaksChanged(this, args);
 }