Ejemplo n.º 1
0
 protected void OnGradientBrushChanged(GradientBrushChangedEventArgs e)
 {
     if (ColorGradientChosen != null)
     {
         ColorGradientChosen(this, e);
     }
 }
 protected void OnGradientBrushChanged(GradientBrushChangedEventArgs e)
 {
     if (GradientBrushChanged != null)
     {
         GradientBrushChanged(this, e);
     }
 }
 protected void OnRendererColorSchemeChanged(GradientBrushChangedEventArgs args)
 {
     if (RendererColorSchemeChanged != null)
     {
         RendererColorSchemeChanged(this, args);
     }
 }
        void optionsConfigControl_RendererColorSchemeChanged(object sender, GradientBrushChangedEventArgs e)
        {
            GraphicsLayer graphicsLayer = Layer as GraphicsLayer;

            if (graphicsLayer == null)
            {
                return;
            }

            graphicsLayer.ApplyColorRampGradientBrushToRenderer(e.GradientBrush);

            ClassBreaksRendererOptionsConfigControl rendererOptions = sender as ClassBreaksRendererOptionsConfigControl;

            if (rendererOptions != null) // refresh the renderer on the config control
            {
                rendererOptions.ClassBreaksRenderer = graphicsLayer.Renderer as ClassBreaksRenderer;
            }
            else
            {
                UniqueValueRendererOptionsConfigControl uniqueValueRendererOptions = sender as UniqueValueRendererOptionsConfigControl;
                if (uniqueValueRendererOptions != null)
                {
                    uniqueValueRendererOptions.UniqueValueRenderer = graphicsLayer.Renderer as UniqueValueRenderer;
                }
            }

            if (RendererSymbolSetContainerControl != null)
            {
                ClassBreaksRendererSymbolsConfigControl rendererSymbols = RendererSymbolSetContainerControl.Content as ClassBreaksRendererSymbolsConfigControl;
                if (rendererSymbols != null)
                {
                    rendererSymbols.RefreshSymbols();
                }
                else
                {
                    UniqueValueRendererSymbolsConfigControl uniqueSymbols = RendererSymbolSetContainerControl.Content as UniqueValueRendererSymbolsConfigControl;
                    if (uniqueSymbols != null)
                    {
                        uniqueSymbols.RefreshSymbols();
                    }
                }
            }
        }
 protected void OnGradientBrushChanged(GradientBrushChangedEventArgs e)
 {
     if (GradientBrushChanged != null)
         GradientBrushChanged(this, e);
 }
 private void onGradientBrushChanged(object sender, GradientBrushChangedEventArgs e)
 {
     OnGradientBrushChanged(e);
 }
 void PreDefinedColorRampControl_GradientBrushChanged(object sender, GradientBrushChangedEventArgs e)
 {
     OnGradientBrushChanged(e);
 }                       
        void optionsConfigControl_RendererColorSchemeChanged(object sender, GradientBrushChangedEventArgs e)
        {
            GraphicsLayer graphicsLayer = Layer as GraphicsLayer;
            if (graphicsLayer == null)
                return;

            graphicsLayer.ApplyColorRampGradientBrushToRenderer(e.GradientBrush);

            ClassBreaksRendererOptionsConfigControl rendererOptions = sender as ClassBreaksRendererOptionsConfigControl;
            if (rendererOptions != null) // refresh the renderer on the config control
                rendererOptions.ClassBreaksRenderer = graphicsLayer.Renderer as ClassBreaksRenderer;
            else
            {
                UniqueValueRendererOptionsConfigControl uniqueValueRendererOptions = sender as UniqueValueRendererOptionsConfigControl;
                if (uniqueValueRendererOptions != null)
                    uniqueValueRendererOptions.UniqueValueRenderer = graphicsLayer.Renderer as UniqueValueRenderer;
            }

            if (RendererSymbolSetContainerControl != null)
            {
                ClassBreaksRendererSymbolsConfigControl rendererSymbols = RendererSymbolSetContainerControl.Content as ClassBreaksRendererSymbolsConfigControl;
                if (rendererSymbols != null)
                {                    
                    rendererSymbols.RefreshSymbols();                 
                }
                else
                {
                    UniqueValueRendererSymbolsConfigControl uniqueSymbols = RendererSymbolSetContainerControl.Content as UniqueValueRendererSymbolsConfigControl;
                    if (uniqueSymbols != null)
                        uniqueSymbols.RefreshSymbols();
                }
            }
        }
 void ColorRampControl_GradientBrushChanged(object sender, GradientBrushChangedEventArgs e)
 {
     OnRendererColorSchemeChanged(e);
 }
 protected void OnRendererColorSchemeChanged(GradientBrushChangedEventArgs args)
 {
     if (RendererColorSchemeChanged != null)
         RendererColorSchemeChanged(this, args);
 }
 void ColorRampControl_GradientBrushChanged(object sender, GradientBrushChangedEventArgs e)
 {
     OnRendererColorSchemeChanged(e);
 }
 void PreDefinedColorRampControl_GradientBrushChanged(object sender, GradientBrushChangedEventArgs e)
 {
     OnGradientBrushChanged(e);
 }
 protected void OnGradientBrushChanged(GradientBrushChangedEventArgs e)
 {
     if (ColorGradientChosen != null)
         ColorGradientChosen(this, e);
 }  
 private void onGradientBrushChanged(object sender, GradientBrushChangedEventArgs e)
 {
     OnGradientBrushChanged(e);
 }