// Constructor public Page_TOC() { InitializeComponent(); self = this; //Panel for to show HelpTopic results resultsPanel = new Panel_HelpTopicResults(this, DockStyle.Fill); //Toc Select panel tocPanel = new Panel_Toc(this, TopicIdCbo, Globals.catalog); //Persistence: Load settings using (UserData userData = new UserData(Globals.DataRegKey)) { TopicIdCbo.Text = userData.ReadStr("Toc.TopicIdCbo", ""); } //Fill TocReturnDetail Enumeration dropdown tocDetailsCbo.Items.Clear(); foreach (TocReturnDetail value in Enum.GetValues(typeof(TocReturnDetail))) tocDetailsCbo.Items.Add(value.ToString()); tocDetailsCbo.SelectedIndex = 0; //SuperTips new SuperTip(TopicIDPictureBox, "Topic ID", "Enter topic ID or select one from the drop down.", "Select the TocReturnDetail you want and click the Get button.", "Use an Id=\"-1\" to specify the virtual root page of the catalog"); new SuperTip(tocDetailsCboTip, ToolTipIcon.Warning, "Warning", "Using 'TocReturnDetail.TocDescendants' can take a long time to complete", "since a top level node can return many 1000's of child/sub-child items.", "In this case be patient. The call will return eventually."); new SuperTip(HlpViewerBtn, "Show in HlpViewer", "Show selected help topic in HlpViewer.exe"); }
public Form_H2Main() { InitializeComponent(); DebugForm.Create(); Globals.Initialize(this); //Create API Test _pages in order _pages.Add(Page_Notes.Create()); _navItems.Add("Introduction"); _pages.Add(Page_Catalogs.Create()); _navItems.Add("Catalogs"); _pages.Add(Page_TOC.Create()); _navItems.Add("TOC"); _pages.Add(Page_Keywords.Create()); _navItems.Add("Keywords"); _pages.Add(Page_Search.Create()); _navItems.Add("Search"); _pages.Add(Page_Topics.Create()); _navItems.Add("Topics"); navListBox.DataSource = _navItems; //Rest of initialization InitOtherPageTabs(); }
// Constructor public Page_TOC() { InitializeComponent(); self = this; //Panel for to show HelpTopic results resultsPanel = new Panel_HelpTopicResults(this, DockStyle.Fill); //Toc Select panel tocPanel = new Panel_Toc(this, TopicIdCbo, Globals.catalog); //Persistence: Load settings using (UserData userData = new UserData(Globals.DataRegKey)) { TopicIdCbo.Text = userData.ReadStr("Toc.TopicIdCbo", ""); } //Fill TocReturnDetail Enumeration dropdown tocDetailsCbo.Items.Clear(); foreach (TocReturnDetail value in Enum.GetValues(typeof(TocReturnDetail))) { tocDetailsCbo.Items.Add(value.ToString()); } tocDetailsCbo.SelectedIndex = 0; //SuperTips new SuperTip(TopicIDPictureBox, "Topic ID", "Enter topic ID or select one from the drop down.", "Select the TocReturnDetail you want and click the Get button.", "Use an Id=\"-1\" to specify the virtual root page of the catalog"); new SuperTip(tocDetailsCboTip, ToolTipIcon.Warning, "Warning", "Using 'TocReturnDetail.TocDescendants' can take a long time to complete", "since a top level node can return many 1000's of child/sub-child items.", "In this case be patient. The call will return eventually."); new SuperTip(HlpViewerBtn, "Show in HlpViewer", "Show selected help topic in HlpViewer.exe"); }
internal static Page_TOC Create() { self = new Page_TOC(); return self; }
internal static Page_TOC Create() { self = new Page_TOC(); return(self); }