Exemple #1
0
        private static void DoActivate(PadDescriptor padDescriptor)
        {
            var workbenchLayout = WorkbenchSingleton.Workbench.EnsureNotNull().WorkbenchLayout;

            workbenchLayout.ShowPad(padDescriptor);
            workbenchLayout.ActivatePad(padDescriptor);

            padDescriptor.BringPadToFront();
        }
Exemple #2
0
        public void BringToFront()
        {
            PadDescriptor d = this.PadDescriptor;

            if (d != null)
            {
                d.BringPadToFront();
            }
        }
Exemple #3
0
        public override void Run()
        {
            PadDescriptor toc = WorkbenchSingleton.Workbench.GetPad(typeof(HtmlHelp2TocPad));

            if (toc != null)
            {
                toc.BringPadToFront();
            }
        }
Exemple #4
0
        public override void Run()
        {
            PadDescriptor index = WorkbenchSingleton.Workbench.GetPad(typeof(HtmlHelp2IndexPad));

            if (index != null)
            {
                index.BringPadToFront();
            }
        }
Exemple #5
0
        public override void Run()
        {
            PadDescriptor dynamicHelp = WorkbenchSingleton.Workbench.GetPad(typeof(HtmlHelp2DynamicHelpPad));

            if (dynamicHelp != null)
            {
                dynamicHelp.BringPadToFront();
            }
        }
Exemple #6
0
        public override void Run()
        {
            PadDescriptor search = WorkbenchSingleton.Workbench.GetPad(typeof(Help3SearchPad));

            if (search != null)
            {
                search.BringPadToFront();
            }
        }
Exemple #7
0
        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();
            }
        }
Exemple #9
0
        public override void Run()
        {
            PadDescriptor search = WorkbenchSingleton.Workbench.GetPad(typeof(HtmlHelp2SearchPad));

            if (search != null)
            {
                search.BringPadToFront();
                ((HtmlHelp2SearchPad)search.PadContent).FocusSearchTextBox();
            }
        }
Exemple #10
0
 public override void Run()
 {
     if (Help3Service.Config.ExternalHelp)
     {
         DisplayHelp.Catalog();
     }
     else
     {
         PadDescriptor toc = WorkbenchSingleton.Workbench.GetPad(typeof(Help3TocPad));
         if (toc != null)
         {
             toc.BringPadToFront();
         }
     }
 }
Exemple #11
0
        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.");
            }
        }
Exemple #12
0
        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();
            }
        }
Exemple #13
0
        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.");
            }
        }
Exemple #16
0
 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();
         }
     }
 }
Exemple #17
0
 protected override void OnClick(EventArgs e)
 {
     base.OnClick(e);
     padDescriptor.BringPadToFront();
 }
Exemple #18
0
 public void Execute(object parameter)
 {
     padDescriptor.BringPadToFront();
 }
 public void BringPadToFront()
 {
     pad.BringPadToFront();
 }
Exemple #20
0
        public void ShowConsolePad()
        {
            PadDescriptor pad = GetConsolePad();

            pad.BringPadToFront();
        }
Exemple #21
0
 protected override void OnClick()
 {
     base.OnClick();
     padDescriptor.BringPadToFront();
 }