src/Misc/EFTools/DesignXmlCore/VisualStudio/Package/SelectionContainer.cs
/// <summary>
///     Called by the notification service when the designer's selection has
///     changed.
/// </summary>
Called by the notification service when the designer's selection has
changed.
Called by the notification service when the designer ' s selection has changed .
private void OnSelectionChanged(T newSelection)
        {
            _currentSelection = new List<object>(newSelection.SelectionCount);
            foreach (EFElement obj in newSelection.SelectedObjects)
            {
                var desc = GetObjectDescriptor(obj, _editingContext);
                if (desc == null)
                {
                    return;
                }
                else
                {
                    _currentSelection.Add(desc);
                }
            }
            RaiseSelectionChange();
        }
private void OnSelectionChanged ( T newSelection ) { _currentSelection = new List < object > ( newSelection . SelectionCount ) ; foreach ( EFElement obj in newSelection . SelectedObjects ) { var desc = GetObjectDescriptor ( obj , _editingContext ) ; if ( desc == null ) { return ; } else { _currentSelection . Add ( desc ) ; } } RaiseSelectionChange ( ) ; }
Called by the notification service when the designer's selection has
changed.
Called by the notification service when the designer ' s selection has changed .
// we don't have a descriptor for this object so just return without // changing the property window
newSelection
T