MapSuiteGisEditor/WpfDesktopExtension/Shares/MapEngine.cs
//  This function allows you to open all of the layers (either static or dynamic)
//  and close their FeatureSources.  This is handy in Map Suite Web Edition, where in between
//  web requests we need to close all connections because we will get serialized.
/// <summary>
/// This API allows you to open all of the layers (either static or dynamic).
/// </summary>
This API allows you to open all of the layers (either static or dynamic).
This API allows you to open all of the layers ( either static or dynamic ) .
public void OpenAllLayers()
        {
            foreach (Layer layer in staticLayers)
            {
                if (!layer.IsOpen) { layer.Open(); }
            }
            foreach (Layer layer in dynamicLayers)
            {
                if (!layer.IsOpen) { layer.Open(); }
            }
            foreach (Layer layer in adornmentLayers)
            {
                if (!layer.IsOpen) { layer.Open(); }
            }
        }
public void OpenAllLayers ( ) { foreach ( Layer layer in staticLayers ) { if ( ! layer . IsOpen ) { layer . Open ( ) ; } } foreach ( Layer layer in dynamicLayers ) { if ( ! layer . IsOpen ) { layer . Open ( ) ; } } foreach ( Layer layer in adornmentLayers ) { if ( ! layer . IsOpen ) { layer . Open ( ) ; } } }
This API allows you to open all of the layers (either static or dynamic).
This API allows you to open all of the layers ( either static or dynamic ) .