src/Misc/EFTools/XmlCore/Base/Context/EditingContext.cs
/// <summary>
///     Called when the user removes a layer.
/// </summary>
Called when the user removes a layer.
Called when the user removes a layer .
private void OnLayerRemoved(DefaultContextLayer layer)
            {
                if (_currentLayer == layer)
                {
                    _currentLayer = layer.ParentLayer;
                }
                else
                {
                    var childLayer = FindChildLayer(layer);
                    childLayer.ParentLayer = layer.ParentLayer;
                }
                Debug.Assert(_currentLayer != null, "DefaultContextLayer should not call OnLayerRemoved for top most layer");
                if (_subscriptions != null)
                {
                    foreach (var oldItem in layer.Items.Values)
                    {
                        OnItemChanged(GetValue(oldItem.ItemType));
                    }
                }
            }
private void OnLayerRemoved ( DefaultContextLayer layer ) { if ( _currentLayer == layer ) { _currentLayer = layer . ParentLayer ; } else { var childLayer = FindChildLayer ( layer ) ; childLayer . ParentLayer = layer . ParentLayer ; } Debug . Assert ( _currentLayer != null , " " ) ; if ( _subscriptions != null ) { foreach ( var oldItem in layer . Items . Values ) { OnItemChanged ( GetValue ( oldItem . ItemType ) ) ; } } }
Called when the user removes a layer.
Called when the user removes a layer .
// For each item that was in the layer, raise a changed event for it
layer
DefaultContextLayer