src/Misc/EFTools/EntityDesign/UI/Views/MappingDetails/MappingDetailsWindow.cs
// <summary>
//     Set ourselves back to what one of the controlling views is currently selecting
// </summary>
Set ourselves back to what one of the controlling views is currently selecting
Set ourselves back to what one of the controlling views is currently selecting
internal void RefreshCurrentSelection()
        {
            Debug.Assert(Context != null, "You cannot refresh selection until you have an EditingContext");
            if (Context != null)
            {
                Selection previousSelection = null;
                if (_currentMappingDetailsInfo != null
                    &&
                    _currentMappingDetailsInfo.SelectionSource == EntityMappingSelectionSource.EntityDesigner)
                {
                    previousSelection = Context.Items.GetValue<EntityDesignerSelection>();
                }
                if (_currentMappingDetailsInfo != null
                    &&
                    _currentMappingDetailsInfo.SelectionSource == EntityMappingSelectionSource.ModelBrowser)
                {
                    previousSelection = Context.Items.GetValue<ExplorerSelection>();
                }
                ClearToolWindowContents(true);
                if (previousSelection != null)
                {
                    ProcessSelectionFromOtherWindows(previousSelection);
                }
            }
        }
internal void RefreshCurrentSelection ( ) { Debug . Assert ( Context != null , " " ) ; if ( Context != null ) { Selection previousSelection = null ; if ( _currentMappingDetailsInfo != null && _currentMappingDetailsInfo . SelectionSource == EntityMappingSelectionSource . EntityDesigner ) { previousSelection = Context . Items . GetValue < EntityDesignerSelection > ( ) ; } if ( _currentMappingDetailsInfo != null && _currentMappingDetailsInfo . SelectionSource == EntityMappingSelectionSource . ModelBrowser ) { previousSelection = Context . Items . GetValue < ExplorerSelection > ( ) ; } ClearToolWindowContents ( true ) ; if ( previousSelection != null ) { ProcessSelectionFromOtherWindows ( previousSelection ) ; } } }
Set ourselves back to what one of the controlling views is currently selecting
Set ourselves back to what one of the controlling views is currently selecting
// see if the designer has a selection // see if the explorer has the selection // clear the contents // if we found one, show this selection