OnDocumentWindowOnScreenChanged() private method

private OnDocumentWindowOnScreenChanged ( WindowFrameInfo info, bool onScreen ) : void
info WindowFrameInfo
onScreen bool
return void
示例#1
0
            public void Dispose()
            {
                ThreadHelper.ThrowIfNotOnUIThread();
                _runningDocTableEvents.OnDocumentWindowOnScreenChanged(this, false);
                var windowFrame2 = (IVsWindowFrame2)WindowFrame;

                ErrorHelper.ThrowOnFailure(windowFrame2.Unadvise(_cookie));
            }
示例#2
0
            public WindowFrameInfo(IVsWindowFrame windowFrame, RunningDocTableEvents runningDocTableEvents)
            {
                ErrorHelper.ThrowIsNull(windowFrame, nameof(windowFrame));
                ThreadHelper.ThrowIfNotOnUIThread();

                _runningDocTableEvents = runningDocTableEvents;
                OnScreen    = true;
                WindowFrame = windowFrame;
#pragma warning disable VSSDK002 // Visual Studio service should be used on main thread explicitly.
                var windowFrame2 = (IVsWindowFrame2)windowFrame;
                ErrorHelper.ThrowOnFailure(windowFrame2.Advise(this, out _cookie));
#pragma warning restore VSSDK002 // Visual Studio service should be used on main thread explicitly.
                _runningDocTableEvents.OnDocumentWindowOnScreenChanged(this, true);
            }
示例#3
0
      public WindowFrameInfo(IVsWindowFrame windowFrame, RunningDocTableEvents runningDocTableEvents)
      {
        ErrorHelper.ThrowIsNull(windowFrame, nameof(windowFrame));
        ThreadHelper.ThrowIfNotOnUIThread();

        _runningDocTableEvents = runningDocTableEvents;
        OnScreen = true;
        WindowFrame = windowFrame;
#pragma warning disable VSSDK002 // Visual Studio service should be used on main thread explicitly.
        var windowFrame2 = (IVsWindowFrame2)windowFrame;
        ErrorHelper.ThrowOnFailure(windowFrame2.Advise(this, out _cookie));
#pragma warning restore VSSDK002 // Visual Studio service should be used on main thread explicitly.
        _runningDocTableEvents.OnDocumentWindowOnScreenChanged(this, true);
      }