internal void OnSourceOutlinerWindowShow(object sender, EventArgs e) { ToolWindowPane window = FindToolWindow(typeof(SourceOutlinerToolWindow), 0, true); if (window == null || window.Frame == null) { throw new COMException(Resources.CannotCreateWindow); } _sourceOutlinerToolWindow = (SourceOutlinerToolWindow)window; IVsWindowFrame windowFrame = (IVsWindowFrame)window.Frame; ErrorHandler.ThrowOnFailure(windowFrame.Show()); }