src/Misc/EFTools/DesignXmlCore/VisualStudio/Package/DocumentFrameMgr.cs
/// <summary>
///     Used whenever we need to change window frame selection (switching/opening/closing). This is used
///     when we are explicitly given a new window frame.
/// </summary>
/// <param name="frame"></param>
Used whenever we need to change window frame selection (switching/opening/closing). This is used
when we are explicitly given a new window frame.
Used whenever we need to change window frame selection ( switching / opening / closing ) . This is used when we are explicitly given a new window frame .
private void UpdateToolWindowsAndCmdsForFrame(FrameWrapper newFrame)
        {
            if (newFrame.ShouldShowToolWindows)
            {
                var artifactUri = _editingContextMgr.GetCurrentUri(newFrame);
                var context = _editingContextMgr.GetNewOrExistingContext(artifactUri);
                Debug.Assert(context != null, "Context is null in UpdateToolWindowsForFrame! The tool windows may not show.");
                SetCurrentContext(context);
            }
            else
            {
                SetCurrentContext(null);
            }
        }
private void UpdateToolWindowsAndCmdsForFrame ( FrameWrapper newFrame ) { if ( newFrame . ShouldShowToolWindows ) { var artifactUri = _editingContextMgr . GetCurrentUri ( newFrame ) ; var context = _editingContextMgr . GetNewOrExistingContext ( artifactUri ) ; Debug . Assert ( context != null , " " ) ; SetCurrentContext ( context ) ; } else { SetCurrentContext ( null ) ; } }
Used whenever we need to change window frame selection (switching/opening/closing).
Used whenever we need to change window frame selection ( switching / opening / closing ) .
newFrame
FrameWrapper
frame
None