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

OnBeforeDocumentWindowShow() public method

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

              if (fFirstShow != 0)
              {
            var windowFrameInfo = new WindowFrameInfo(frame, this);
            _windowFrames.Add(frame, windowFrameInfo);
            DocumentWindowCreate?.Invoke(this, new DocumentWindowEventArgs(windowFrameInfo));
              }

              //var path = frame.GetFilePath();
              //int isOnScreen;
              //frame.IsOnScreen(out isOnScreen);
              //Debug.WriteLine($"tr: BeforeDocumentWindowShow(docCookie={docCookie}, fFirstShow='{fFirstShow != 0}', isOnScreen={isOnScreen}, path='{path}')");

              //if (_activeFrames.Count == 0 || _activeFrames[0] != frame)
              //{
              //  _activeFrames.Remove(frame);
              //  _activeFrames.Insert(0, frame);
              //}
              //
              // посылаем сообщение активации
              return VSConstants.S_OK;
        }