Esempio n. 1
0
        private void InitOtherPageTabs()
        {
            // Associate this application with the ms-xhelp:/// protocol
            msxhelpProtocol = new MsxhelpProtocol();

            // About page
            InitAboutPageTab();

            //Store Page
            Page_Store storePage = new Page_Store();

            storePage.Parent = tabPagContentStore;
            storePage.Dock   = DockStyle.Fill;

            //Create MSHX Page
            Page_CreateMSHX mshxPage = new Page_CreateMSHX();

            mshxPage.Parent = tabPageMshx;
            mshxPage.Dock   = DockStyle.Fill;

            //Event Log Page
            eventLogPage        = new Page_EventLog(tabPageEventLog);
            eventLogPage.Parent = tabPageEventLog;
            eventLogPage.Dock   = DockStyle.Fill;

            //Other
            new SuperTip(imageRenderWithVS, "Render with VS",
                         "Topics extracted from a catalog's .mshc help file are not yet rendered for viewing in the browser.",
                         "EG. Links need to be expanded to use the ms-xhelp:/// protocol and point to the correct location in the catalog",
                         "By default we provide a pluggle protocol and code that renders the HTML.",
                         "Check this box to render using the VS rendering code in Microsoft.VisualStudio.Help.dll");
        }
Esempio n. 2
0
        public Page_Store()
        {
            InitializeComponent();
            self = this;


            // Init Catalog Cbo with catalog paths from the registry
            List <CatalogItem> _catalogList = CatalogList.GetCatalogs();   //Get list from the HV2 registry

            catalogPathCbo.Items.Clear();
            foreach (CatalogItem catalog in _catalogList)
            {
                catalogPathCbo.Items.Add(catalog.LocationPath);
            }
            if (catalogPathCbo.Items.Count > 0)  //Select something
            {
                catalogPathCbo.SelectedIndex = 0;
            }

            //Monitoring Catalog Locks
            monitorTimer.Interval = 1000;  //Poll for locks ever 1 sec
            monitorTimer.Tick    += new EventHandler(monitorTimer_Tick);

            //Init SuperTip and tips
            defaultMonitorTip = "Here we display the catalog write lock status on a timer.\nTry performing a catalog update (Help Manager) and watch the status change.\nUseful to apps like this which access catalog files directly.";
            monitorLocksTip   = new SuperTip(CatalogLocksTip, "Monitor Catalog Locks", defaultMonitorTip);
            new SuperTip(LoadButtonTip, "Load",
                         "Given a valid 'managed' catalog location, the Load button code rips",
                         "the various catalog XML files for all catalog configuration data.",
                         "* CatalogType.xml - Required to enable User Managed content.",
                         @"* ContentStore\installedBooks.xml - Lists all catalog books and packages.",
                         @"* ContentStore\<locale>\<packageName>.metadata - Package download related info.");
            new SuperTip(warningTip, "Bypassing the API Warning",
                         "Here we are sneaking around the Help Runtime API and accessing",
                         "help catalog files directly. While this is all very interesting",
                         "as we learn how Help Viewer 2.0 works, the Help API normally",
                         "serves most of our needs, and we don't want to block or upset",
                         "the normal operation of the help system.");
            CopyBtn.ToolTipText     = "Copy node & sub-node text\n(Ctrl+C)";
            ExplorerBtn.ToolTipText = "Show the associated XML file in Explorer\n(Ctrl+E)";

            EnableDisable();
        }
Esempio n. 3
0
        public Page_Store()
        {
            InitializeComponent();
            self = this;

            // Init Catalog Cbo with catalog paths from the registry
            List<CatalogItem> _catalogList = CatalogList.GetCatalogs();   //Get list from the HV2 registry
            catalogPathCbo.Items.Clear();
            foreach (CatalogItem catalog in _catalogList)
                catalogPathCbo.Items.Add(catalog.LocationPath);
            if (catalogPathCbo.Items.Count > 0)  //Select something
                catalogPathCbo.SelectedIndex = 0;

            //Monitoring Catalog Locks
            monitorTimer.Interval = 1000;  //Poll for locks ever 1 sec
            monitorTimer.Tick += new EventHandler(monitorTimer_Tick);

            //Init SuperTip and tips
            defaultMonitorTip = "Here we display the catalog write lock status on a timer.\nTry performing a catalog update (Help Manager) and watch the status change.\nUseful to apps like this which access catalog files directly.";
            monitorLocksTip = new SuperTip(CatalogLocksTip, "Monitor Catalog Locks", defaultMonitorTip);
            new SuperTip(LoadButtonTip, "Load",
                "Given a valid 'managed' catalog location, the Load button code rips",
                "the various catalog XML files for all catalog configuration data.",
                "* CatalogType.xml - Required to enable User Managed content.",
                @"* ContentStore\installedBooks.xml - Lists all catalog books and packages.",
                @"* ContentStore\<locale>\<packageName>.metadata - Package download related info.");
            new SuperTip(warningTip, "Bypassing the API Warning",
                "Here we are sneaking around the Help Runtime API and accessing",
                "help catalog files directly. While this is all very interesting",
                "as we learn how Help Viewer 2.0 works, the Help API normally",
                "serves most of our needs, and we don't want to block or upset",
                "the normal operation of the help system.");
            CopyBtn.ToolTipText = "Copy node & sub-node text\n(Ctrl+C)";
            ExplorerBtn.ToolTipText = "Show the associated XML file in Explorer\n(Ctrl+E)";

            EnableDisable();
        }
Esempio n. 4
0
        private void InitOtherPageTabs()
        {
            // Associate this application with the ms-xhelp:/// protocol
            msxhelpProtocol = new MsxhelpProtocol();

            // About page
            InitAboutPageTab();

            //Store Page
            Page_Store storePage = new Page_Store();
            storePage.Parent = tabPagContentStore;
            storePage.Dock = DockStyle.Fill;

            //Create MSHX Page
            Page_CreateMSHX mshxPage = new Page_CreateMSHX();
            mshxPage.Parent = tabPageMshx;
            mshxPage.Dock = DockStyle.Fill;

            //Event Log Page
            eventLogPage = new Page_EventLog(tabPageEventLog);
            eventLogPage.Parent = tabPageEventLog;
            eventLogPage.Dock = DockStyle.Fill;

            //Other
            new SuperTip(imageRenderWithVS, "Render with VS",
                "Topics extracted from a catalog's .mshc help file are not yet rendered for viewing in the browser.",
                "EG. Links need to be expanded to use the ms-xhelp:/// protocol and point to the correct location in the catalog",
                "By default we provide a pluggle protocol and code that renders the HTML.",
                "Check this box to render using the VS rendering code in Microsoft.VisualStudio.Help.dll");
        }
Esempio n. 5
0
 internal static Page_Store Create()
 {
     self = new Page_Store();
     return(self);
 }
Esempio n. 6
0
 internal static Page_Store Create()
 {
     self = new Page_Store();
     return self;
 }