Example #1
0
        public void SaveSettings()
        {
            this._settings["SearchWindowLocation"] = this.Location;
            // save replace mode size, since we will shink the size next time findOnly is set.
            this._settings["SearchSize"]      = this.ClientSize;
            this._settings["FindMode"]        = this._findOnly;
            this._settings["SearchXPath"]     = this.checkBoxXPath.Checked;
            this._settings["SearchWholeWord"] = this.checkBoxWholeWord.Checked;
            this._settings["SearchRegex"]     = this.checkBoxRegex.Checked;
            this._settings["SearchMatchCase"] = this.checkBoxMatchCase.Checked;

            this._settings["RecentFindStrings"]    = _recentFindStrings.GetLatestValues();
            this._settings["RecentReplaceStrings"] = _recentReplaceStrings.GetLatestValues();

            HelpProvider hp = this.Site.GetService(typeof(HelpProvider)) as HelpProvider;
            HelpService  hs = this.Site.GetService(typeof(HelpService)) as HelpService;

            if (hp != null && hs.DynamicHelpEnabled)
            {
                hp.HelpNamespace = hs.DefaultHelp;
            }
        }