Exemplo 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");
        }
Exemplo n.º 2
0
        public Page_EventLog(TabPage hostTabPage)
        {
            InitializeComponent();
            self = this;

            _hostTabPage = hostTabPage;
            if (_hostTabPage != null)
            {
                _hostTabPageText = _hostTabPage.Text;
            }

            //Persistence: Load settings
            using (UserData userData = new UserData(Globals.DataRegKey))
            {
                rdoAll.Checked        = userData.ReadBool("EventLog.ShowAll", rdoAll.Checked);
                rdoHelp.Checked       = !rdoAll.Checked;
                cbxIncludeHV1.Checked = userData.ReadBool("EventLog.cbxIncludeHV1", cbxIncludeHV1.Checked);
                EnableDisable();
            }


            //Init the log Obj after Loading settings incase setting checkboxes fires refilling
            eventlog = new EventLog("Application");

            //Check for new updates on a timer
            watchTimer          = new Timer();
            watchTimer.Interval = 1000;  //msec
            watchTimer.Tick    += new EventHandler(Timer_Tick);
            watchTimer.Start();

            new SuperTip(EventLogTip, "Application Event Log",
                         "This page just echos the Windows Application Event Log.",
                         "Latest entries are at the top. The page tab displays the",
                         "number of entries that have arrived since startup.",
                         "Blue or purple text = Help Viewer 1.x or 2.x events.");
            new SuperTip(ShowLogTip, "Show",
                         "Show All Events - Shows entire Application Event Log",
                         "Show HV2 Events - Scans the last 1000 events for HV2 events",
                         "  (with the option to include Help Viewer 1.x events).");
        }
Exemplo n.º 3
0
        public Page_EventLog(TabPage hostTabPage)
        {
            InitializeComponent();
            self = this;

            _hostTabPage = hostTabPage;
            if (_hostTabPage != null)
                _hostTabPageText = _hostTabPage.Text;

            //Persistence: Load settings
            using (UserData userData = new UserData(Globals.DataRegKey))
            {
                rdoAll.Checked = userData.ReadBool("EventLog.ShowAll", rdoAll.Checked);
                rdoHelp.Checked = !rdoAll.Checked;
                cbxIncludeHV1.Checked = userData.ReadBool("EventLog.cbxIncludeHV1", cbxIncludeHV1.Checked);
                EnableDisable();
            }

            //Init the log Obj after Loading settings incase setting checkboxes fires refilling
            eventlog = new EventLog("Application");

            //Check for new updates on a timer
            watchTimer = new Timer();
            watchTimer.Interval = 1000;  //msec
            watchTimer.Tick += new EventHandler(Timer_Tick);
            watchTimer.Start();

            new SuperTip(EventLogTip, "Application Event Log",
                "This page just echos the Windows Application Event Log.",
                "Latest entries are at the top. The page tab displays the",
                "number of entries that have arrived since startup.",
                "Blue or purple text = Help Viewer 1.x or 2.x events.");
            new SuperTip(ShowLogTip, "Show",
                "Show All Events - Shows entire Application Event Log",
                "Show HV2 Events - Scans the last 1000 events for HV2 events",
                "  (with the option to include Help Viewer 1.x events).");
        }
Exemplo n.º 4
0
 internal static Page_EventLog Create(TabPage hostTabPage)
 {
     self = new Page_EventLog(hostTabPage);
     return self;
 }
Exemplo n.º 5
0
 internal static Page_EventLog Create(TabPage hostTabPage)
 {
     self = new Page_EventLog(hostTabPage);
     return(self);
 }
Exemplo n.º 6
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");
        }