Пример #1
0
        public Panel_HelpIndexer()
        {
            InitializeComponent();
            self = this;

            Assembly thisAssembly = System.Reflection.Assembly.GetExecutingAssembly();
            _helpIndexerPath = Path.Combine(Path.GetDirectoryName(thisAssembly.Location), "HelpIndexer\\helpIndexer.exe");

            new SuperTip(RunBtnTip, "HelpIndexer.exe",
                "HelpIndexer.exe currently ships with Windows 8 ADK (Assessment and Deployment Kit),",
                "You can download Win 8 ADK from MSDN Subscription Downloads. This page expects",
                "HelpIndexer.exe to be in the following location: ",
                _helpIndexerPath);

            //Persistence: Load settings
            using (UserData userData = new UserData(Globals.DataRegKey))
            {
                InputFilename = userData.ReadStr("Mshx.InputFilename", "");
                OutputDir = userData.ReadStr("Mshx.OutputDir", "");
                OutputName = userData.ReadStr("Mshx.OutputName", "");
                VendorName = userData.ReadStr("Mshx.VendorName", "");
                CombineMode = userData.ReadBool("Mshx.CombineMode", true);
            }
            EnableDisable();
            UpdateCommandLine();
        }
Пример #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).");
        }
Пример #3
0
        private void Form1_Load(object sender, EventArgs e)
        {
            sourceSplitter.Panel2Collapsed = true;
            //Supertips
            new SuperTip(imageUnrendered, "Unrendered Source (F6)", "Displays the original topic source from the .mshc help file.", "To see the 'rendered' source right-click and 'View Source' the WebBrowser control.");

            //Load the first registered catalog we find
            LoadCatalog();

            //load persistence UI data
            using (UserData userData = new UserData(UIDataStoreKey))
            {
                userData.RestoreFormPos(this);
                splitContainer1.SplitterDistance = userData.ReadInt("NavSplitterPos", splitContainer1.SplitterDistance);
                sourceSplitter.SplitterDistance = userData.ReadInt("SourceSplitterPos", sourceSplitter.SplitterDistance);
                ShowUnrenderedSource(userData.ReadBool("ShowUnrendered", !sourceSplitter.Panel2Collapsed));
            //                SetVSRenderMode(userData.ReadBool("VsRenderer", mnuVSRenderer.Checked));
                autoSyncOption.Checked = userData.ReadBool("AutoSync", autoSyncOption.Checked);
            }

            EnableDisable();
        }