Nitra.VisualStudio.RunningDocTableEvents.OnAfterDocumentWindowHide C# (CSharp) Method

OnAfterDocumentWindowHide() public method

public OnAfterDocumentWindowHide ( uint docCookie, IVsWindowFrame frame ) : int
docCookie uint
frame IVsWindowFrame
return int
        public int OnAfterDocumentWindowHide(uint docCookie, IVsWindowFrame frame)
        {
            ThreadHelper.ThrowIfNotOnUIThread();

              //object path = frame.GetFilePath();
              //Debug.WriteLine($"tr: OnAfterDocumentWindowHide(docCookie={docCookie}, path='{path}')");

              WindowFrameInfo windowFrameInfo;

              if (_windowFrames.TryGetValue(frame, out windowFrameInfo))
              {
            DocumentWindowDestroy?.Invoke(this, new DocumentWindowEventArgs(windowFrameInfo));
            windowFrameInfo.Dispose();
            _windowFrames.Remove(frame);
              }

              return VSConstants.S_OK;
        }