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

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

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

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

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

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

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

            if (search != null)
            {
                search.BringPadToFront();
            }
        }
示例#7
0
        public override void Run()
        {
            PadDescriptor padContent = WorkbenchSingleton.Workbench.GetPad(typeof(ICSharpCode.SharpDevelop.Gui.PropertyPad));

            if (padContent != null)
            {
                padContent.BringPadToFront();
            }
        }
示例#8
0
        public override void Run()
        {
            PadDescriptor favorites = WorkbenchSingleton.Workbench.GetPad(typeof(HtmlHelp2FavoritesPad));

            if (favorites != null)
            {
                favorites.BringPadToFront();
            }
        }
示例#9
0
        public override void Run()
        {
            PadDescriptor search = WorkbenchSingleton.Workbench.GetPad(typeof(HtmlHelp2SearchPad));

            if (search != null)
            {
                search.BringPadToFront();
                ((HtmlHelp2SearchPad)search.PadContent).FocusSearchTextBox();
            }
        }
示例#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();
         }
     }
 }
示例#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.");
            }
        }
示例#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();
            }
        }
示例#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.");
            }
        }
示例#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();
         }
     }
 }
示例#17
0
 protected override void OnClick(EventArgs e)
 {
     base.OnClick(e);
     padDescriptor.BringPadToFront();
 }
示例#18
0
 public void Execute(object parameter)
 {
     padDescriptor.BringPadToFront();
 }
 public void BringPadToFront()
 {
     pad.BringPadToFront();
 }
示例#20
0
        public void ShowConsolePad()
        {
            PadDescriptor pad = GetConsolePad();

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