private static void DoActivate(PadDescriptor padDescriptor) { var workbenchLayout = WorkbenchSingleton.Workbench.EnsureNotNull().WorkbenchLayout; workbenchLayout.ShowPad(padDescriptor); workbenchLayout.ActivatePad(padDescriptor); padDescriptor.BringPadToFront(); }
public void BringToFront() { PadDescriptor d = this.PadDescriptor; if (d != null) { d.BringPadToFront(); } }
public override void Run() { PadDescriptor toc = WorkbenchSingleton.Workbench.GetPad(typeof(HtmlHelp2TocPad)); if (toc != null) { toc.BringPadToFront(); } }
public override void Run() { PadDescriptor index = WorkbenchSingleton.Workbench.GetPad(typeof(HtmlHelp2IndexPad)); if (index != null) { index.BringPadToFront(); } }
public override void Run() { PadDescriptor dynamicHelp = WorkbenchSingleton.Workbench.GetPad(typeof(HtmlHelp2DynamicHelpPad)); if (dynamicHelp != null) { dynamicHelp.BringPadToFront(); } }
public override void Run() { PadDescriptor search = WorkbenchSingleton.Workbench.GetPad(typeof(Help3SearchPad)); if (search != null) { search.BringPadToFront(); } }
public override void Run() { PadDescriptor padContent = WorkbenchSingleton.Workbench.GetPad(typeof(ICSharpCode.SharpDevelop.Gui.PropertyPad)); if (padContent != null) { padContent.BringPadToFront(); } }
public override void Run() { PadDescriptor favorites = WorkbenchSingleton.Workbench.GetPad(typeof(HtmlHelp2FavoritesPad)); if (favorites != null) { favorites.BringPadToFront(); } }
public override void Run() { PadDescriptor search = WorkbenchSingleton.Workbench.GetPad(typeof(HtmlHelp2SearchPad)); if (search != null) { search.BringPadToFront(); ((HtmlHelp2SearchPad)search.PadContent).FocusSearchTextBox(); } }
public override void Run() { if (Help3Service.Config.ExternalHelp) { DisplayHelp.Catalog(); } else { PadDescriptor toc = WorkbenchSingleton.Workbench.GetPad(typeof(Help3TocPad)); if (toc != null) { toc.BringPadToFront(); } } }
void SetViewMode(object sender, EventArgs e) { PadDescriptor searchResultPanel = WorkbenchSingleton.Workbench.GetPad(typeof(SearchResultPanel)); if (searchResultPanel != null) { searchResultPanel.BringPadToFront(); SearchResultPanel.Instance.ViewMode = (SearchResultPanelViewMode)((ToolStripItem)sender).Tag;; UpdateDropDownItems(); } else { MessageService.ShowError("SearchResultPanel can't be found."); } }
public override void Run() { if (!Help3Environment.IsHelp3ProtocolRegistered) { using (HelpLibraryManagerNotFoundForm form = new HelpLibraryManagerNotFoundForm()) { form.ShowDialog(SD.WinForms.MainWin32Window); } return; } PadDescriptor search = SD.Workbench.GetPad(typeof(Help3SearchPad)); if (search != null) { search.BringPadToFront(); } }
public static void ShowSearchResults(string pattern, List <SearchResult> results) { SearchAndReplace.SearchAllFinishedEventArgs e = new SearchAllFinishedEventArgs(pattern, results); OnSearchAllFinished(e); PadDescriptor searchResultPanel = WorkbenchSingleton.Workbench.GetPad(typeof(SearchResultPanel)); if (searchResultPanel != null) { searchResultPanel.BringPadToFront(); SearchResultPanel.Instance.ShowSearchResults(pattern, results); } else { MessageService.ShowError("SearchResultPanel can't be created."); } }
public override void Run() { IWorkbench workbench = WorkbenchSingleton.Workbench; PadDescriptor setupDialogsPad = workbench.GetPad(typeof(SetupDialogListPad)); if (setupDialogsPad != null) { setupDialogsPad.BringPadToFront(); } else { foreach (PadDescriptor pad in workbench.PadContentCollection) { if (pad.PadContent is SetupDialogListPad) { workbench.ShowPad(pad); break; } } } }
void SwitchSearchResults(object sender, EventArgs e) { SearchAllFinishedEventArgs args = (SearchAllFinishedEventArgs)((ToolStripItem)sender).Tag; // "bubble" this saved search to the top of the list SearchInFilesManager.LastSearches.Remove(args); SearchInFilesManager.LastSearches.Insert(0, args); UpdateLastSearches(null, args); PadDescriptor searchResultPanel = WorkbenchSingleton.Workbench.GetPad(typeof(SearchResultPanel)); if (searchResultPanel != null) { searchResultPanel.BringPadToFront(); SearchResultPanel.Instance.ShowSearchResults(args.Pattern, args.Results); } else { MessageService.ShowError("SearchResultPanel can't be found."); } }
public override void Run() { if (!Help3Environment.IsHelp3ProtocolRegistered) { using (HelpLibraryManagerNotFoundForm form = new HelpLibraryManagerNotFoundForm()) { form.ShowDialog(SD.WinForms.MainWin32Window); } return; } if (Help3Service.Config.ExternalHelp) { DisplayHelp.Catalog(); } else { PadDescriptor toc = SD.Workbench.GetPad(typeof(Help3TocPad)); if (toc != null) { toc.BringPadToFront(); } } }
protected override void OnClick(EventArgs e) { base.OnClick(e); padDescriptor.BringPadToFront(); }
public void Execute(object parameter) { padDescriptor.BringPadToFront(); }
public void BringPadToFront() { pad.BringPadToFront(); }
public void ShowConsolePad() { PadDescriptor pad = GetConsolePad(); pad.BringPadToFront(); }
protected override void OnClick() { base.OnClick(); padDescriptor.BringPadToFront(); }