Ejemplo n.º 1
0
 protected void OnGetDefaultSymbolCompleted(GetDefaultSymbolCompletedEventArgs args)
 {
     if (GetDefaultSymbolCompleted != null)
     {
         GetDefaultSymbolCompleted(this, args);
     }
 }
        void SymbolConfigProvider_GetDefaultSymbolCompleted(object sender, GetDefaultSymbolCompletedEventArgs e)
        {
            Symbology.AddDefaultSymbolForGeometryType(e.GeometryType, e.DefaultSymbol);

            GraphicsLayer layer = e.UserState as GraphicsLayer;
            if (layer == null)
                return;

            if (Core.LayerExtensions.GetRunLayerPostInitializationActions(layer))
            {
                PerformPostLayerInitializationActions(layer, true);
                Core.LayerExtensions.SetRunLayerPostInitializationActions(layer, false);
                return;
            }

            AddLayer(layer, true, null);
        }
 protected void OnGetDefaultSymbolCompleted(GetDefaultSymbolCompletedEventArgs args)
 {
     if (GetDefaultSymbolCompleted != null)
         GetDefaultSymbolCompleted(this, args);
 }