コード例 #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();
        }
コード例 #2
0
        public Page_Catalogs()
        {
            InitializeComponent();
            self = this;

            //List of available Catalogs
            _catalogList = CatalogList.GetCatalogs();   //Get list from the HV2 registry

            //Add Windows 8 catalogs if found
            String winDir = Environment.GetFolderPath(Environment.SpecialFolder.Windows);

            CatalogList.WildAddCollection(Path.Combine(winDir, "help\\windows\\"), _catalogList, "Windws 8 Help");
            CatalogList.WildAddCollection(Path.Combine(winDir, "help\\oem\\"), _catalogList, "Windws 8 OEM Help");

            FillCatalogListBox(0);
            RegistryDumpToDebug();

            //SuperTips
            new SuperTip(OpenCatalogBtnTip, "ICatalog.Open(catalogDirectory, localeList)",
                         "Open a catalog to view its contents with the various ICatalogRead. methods.",
                         "A valid catalog directory will contain the folders \"ContentStore\" & \"IndexStore\".",
                         "Always close your catalogs when done by calling ICatalog.Close()."
                         );

            new SuperTip(GetCatalogReadWriteLockBtnTip, "ICatalog.GetReadWriteLock(catalogDirectory)",
                         "Returns an ICatalogReadWriteLock object to set/get locking at the catalog level.");

            new SuperTip(AvailableCatalogsTip, "Available Catalogs",
                         "Microsoft HlpViewer.exe can open a catalog by a short ID if the catalog is registered (in registry).",
                         "We can also open a catalog by the directory path. And there are special standalone help files",
                         "(.MSHX) that contain both (.mshc) content and (.mshi) index information.");

            new SuperTip(AddBtnTip, "Add Catalog Folder or File",
                         "You can open an unregistered catalog by using its full directory path.",
                         "You can also open a .mshx file. These files contain both .mshc (content)",
                         " & .mshi (index) information like a .chm or .hlp file.");
        }
コード例 #3
0
ファイル: Page_Catalogs.cs プロジェクト: bencz/OrangeC
        private List<FlatCatalogListItem> _flatCalaogList = null; //flattened list - eg. cat1/local1, cat1/local2, cat2/local1 ...

        #endregion Fields

        #region Constructors

        public Page_Catalogs()
        {
            InitializeComponent();
            self = this;

            //List of available Catalogs
            _catalogList = CatalogList.GetCatalogs();   //Get list from the HV2 registry

            //Add Windows 8 catalogs if found
            String winDir = Environment.GetFolderPath(Environment.SpecialFolder.Windows);
            CatalogList.WildAddCollection(Path.Combine(winDir, "help\\windows\\"), _catalogList, "Windws 8 Help");
            CatalogList.WildAddCollection(Path.Combine(winDir, "help\\oem\\"), _catalogList, "Windws 8 OEM Help");

            FillCatalogListBox(0);
            RegistryDumpToDebug();

            //SuperTips
            new SuperTip(OpenCatalogBtnTip, "ICatalog.Open(catalogDirectory, localeList)",
                "Open a catalog to view its contents with the various ICatalogRead. methods.",
                "A valid catalog directory will contain the folders \"ContentStore\" & \"IndexStore\".",
                "Always close your catalogs when done by calling ICatalog.Close()."
                );

            new SuperTip(GetCatalogReadWriteLockBtnTip, "ICatalog.GetReadWriteLock(catalogDirectory)",
                "Returns an ICatalogReadWriteLock object to set/get locking at the catalog level.");

            new SuperTip(AvailableCatalogsTip, "Available Catalogs",
                "Microsoft HlpViewer.exe can open a catalog by a short ID if the catalog is registered (in registry).",
                "We can also open a catalog by the directory path. And there are special standalone help files",
                "(.MSHX) that contain both (.mshc) content and (.mshi) index information.");

            new SuperTip(AddBtnTip, "Add Catalog Folder or File",
                "You can open an unregistered catalog by using its full directory path.",
                "You can also open a .mshx file. These files contain both .mshc (content)",
                " & .mshi (index) information like a .chm or .hlp file.");
        }
コード例 #4
0
 private void H2MainForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     //close any open catalogs
     Page_Catalogs.DoCloseCatalog();
 }
コード例 #5
0
ファイル: Page_Catalogs.cs プロジェクト: bencz/OrangeC
 internal static Page_Catalogs Create()
 {
     self = new Page_Catalogs();
     return self;
 }
コード例 #6
0
        private List <FlatCatalogListItem> _flatCalaogList = null;   //flattened list - eg. cat1/local1, cat1/local2, cat2/local1 ...

        internal static Page_Catalogs Create()
        {
            self = new Page_Catalogs();
            return(self);
        }