/// <summary> /// Shows the tool window when the menu item is clicked. /// </summary> /// <param name="sender">The event sender.</param> /// <param name="e">The event args.</param> private void ShowToolWindow(object sender, EventArgs e) { // Get the instance number 0 of this tool window. This window is single instance so this instance // is actually the only one. // The last flag is set to true so that if the tool window does not exists it will be created. /*ToolWindowPane window = this.package.FindToolWindow(typeof(QuickFileToolWindow), 0, true); if ((null == window) || (null == window.Frame)) { throw new NotSupportedException("Cannot create tool window"); } IVsWindowFrame windowFrame = (IVsWindowFrame)window.Frame; Microsoft.VisualStudio.ErrorHandler.ThrowOnFailure(windowFrame.Show());*/ //Common.Instance.SolutionWatcher.TestSpeed(); QuickFileToolWindow window = new QuickFileToolWindow(false); window.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen; window.ShowModal(); }
/// <summary> /// Shows the tool window when the menu item is clicked. /// </summary> /// <param name="sender">The event sender.</param> /// <param name="e">The event args.</param> private void ShowToolWindow(object sender, EventArgs e) { QuickFileToolWindow window = new QuickFileToolWindow(true); window.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen; window.ShowModal(); }