MapSuiteGisEditor/GisEditorInfrastructure/Managers/LayerPluginManager.cs
/// <summary>
/// Gets the layer list item core.
/// </summary>
/// <param name="layer">The layer.</param>
/// <returns></returns>
Gets the layer list item core.
Gets the layer list item core .
protected virtual LayerListItem GetLayerListItemCore(Layer layer)
        {
            LayerPlugin matchLayerPlugin = null;
            var matchLayerPlugins = GetLayerPlugins(layer.GetType());
            if (matchLayerPlugins.Count > 1)
                matchLayerPlugin = matchLayerPlugins.FirstOrDefault(p => !p.GetType().Assembly.Location.Equals(DefaultPluginPathFileName, StringComparison.OrdinalIgnoreCase));
            else
                matchLayerPlugin = matchLayerPlugins.FirstOrDefault();
            if (matchLayerPlugin != null) return matchLayerPlugin.GetLayerListItem(layer);
            else return null;
        }
protected virtual LayerListItem GetLayerListItemCore ( Layer layer ) { LayerPlugin matchLayerPlugin = null ; var matchLayerPlugins = GetLayerPlugins ( layer . GetType ( ) ) ; if ( matchLayerPlugins . Count > 1 ) matchLayerPlugin = matchLayerPlugins . FirstOrDefault ( p => ! p . GetType ( ) . Assembly . Location . Equals ( DefaultPluginPathFileName , StringComparison . OrdinalIgnoreCase ) ) ; else matchLayerPlugin = matchLayerPlugins . FirstOrDefault ( ) ; if ( matchLayerPlugin != null ) return matchLayerPlugin . GetLayerListItem ( layer ) ; else return null ; }
Gets the layer list item core.
Gets the layer list item core .
None
layer
Layer
None