Example #1
0
        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();
        }
Example #2
0
 public static void Create()
 {
     if (self == null)
     {
         self = new DebugForm();
     }
 }
Example #3
0
        private void RegistryDumpToDebug()  // HV2 registry info --> Debug window
        {
            DebugForm.Clear();
            HV2RegInfo regInfo = new HV2RegInfo();

            Color textColor = Color.DarkCyan;

            DebugForm.rtf.WriteLine("RegistryView: " + regInfo.RegistryView.ToString(), textColor);
            DebugForm.rtf.WriteLine(@"[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Help\v2.0]");
            DebugForm.rtf.WriteLine("AppRoot: " + regInfo.AppRoot, textColor);
            DebugForm.rtf.WriteLine("DefaultHelpViewerCLSID = " + regInfo.DefaultHelpViewerCLSID, textColor);
            DebugForm.rtf.WriteLine(@"[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Help\v2.0\Catalogs]");
            DebugForm.rtf.WriteLine("ContentStore = " + regInfo.ContentStore, textColor);
            DebugForm.rtf.WriteLine("");

            List <CatalogItem> catalogList = CatalogList.GetCatalogs();

            catalogList.ForEach(delegate(CatalogItem catalog)
            {
                DebugForm.rtf.WriteLine(@"[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Help\v2.0\Catalogs\" + catalog.CatalogID + "]");
                DebugForm.rtf.WriteLine("   LocationPath = " + catalog.LocationPath, textColor);
                catalog.Locales.ForEach(delegate(CatalogLocaleItem catlocale)
                {
                    DebugForm.rtf.WriteLine(@"   [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Help\v2.0\Catalogs\" + catalog.CatalogID + "\\" + catlocale.Locale + "]");
                    DebugForm.rtf.WriteLine("   CatalogName = " + catlocale.CatalogName, textColor);
                    DebugForm.rtf.WriteLine("   SeedFilePath = " + catlocale.SeedFilePath, textColor);
                });
            });
        }