MapSuiteGisEditor/GisEditorInfrastructure/Managers/SelectionManager.cs
/// <summary>
/// Clears the selected features core.
/// </summary>
/// <param name="featureLayer">The feature layer.</param>
Clears the selected features core.
Clears the selected features core .
protected virtual void ClearSelectedFeaturesCore(FeatureLayer featureLayer)
        {
            if (GisEditor.SelectionManager.GetSelectedFeatures().Count > 0)
            {
                var overlay = GisEditor.SelectionManager.GetSelectionOverlay();
                var featuresToRemove = overlay.HighlightFeatureLayer.InternalFeatures.Where(feature => feature.Tag == featureLayer).ToArray();
                foreach (var feature in featuresToRemove)
                {
                    overlay.HighlightFeatureLayer.InternalFeatures.Remove(feature);
                }
                overlay.StandOutHighlightFeatureLayer.InternalFeatures.Clear();
                overlay.HighlightFeatureLayer.BuildIndex();
                GisEditor.ActiveMap.Refresh(overlay);
            }
        }
protected virtual void ClearSelectedFeaturesCore ( FeatureLayer featureLayer ) { if ( GisEditor . SelectionManager . GetSelectedFeatures ( ) . Count > 0 ) { var overlay = GisEditor . SelectionManager . GetSelectionOverlay ( ) ; var featuresToRemove = overlay . HighlightFeatureLayer . InternalFeatures . Where ( feature => feature . Tag == featureLayer ) . ToArray ( ) ; foreach ( var feature in featuresToRemove ) { overlay . HighlightFeatureLayer . InternalFeatures . Remove ( feature ) ; } overlay . StandOutHighlightFeatureLayer . InternalFeatures . Clear ( ) ; overlay . HighlightFeatureLayer . BuildIndex ( ) ; GisEditor . ActiveMap . Refresh ( overlay ) ; } }
Clears the selected features core.
Clears the selected features core .
featureLayer
FeatureLayer
The feature layer.
The feature layer .