Пример #1
0
        /// <summary>
        /// Fill the object with settings from UI
        /// </summary>
        public FaRPrefs(bool mEnabled, WikiFunctions.Parse.FindandReplace findAndReplace,
            WikiFunctions.MWB.ReplaceSpecial replaceSpecial, string[] mSubstTemplates,
            bool mIncludeComments, bool mExpandRecursively, bool mIgnoreUnformatted)
        {
            Enabled = mEnabled;
            IgnoreSomeText = findAndReplace.ignoreLinks;
            IgnoreMoreText = findAndReplace.ignoreMore;
            AppendSummary = findAndReplace.AppendToSummary;
            AfterOtherFixes = findAndReplace.AfterOtherFixes;
            Replacements = findAndReplace.GetList();
            AdvancedReps = replaceSpecial.GetRules();

            SubstTemplates = mSubstTemplates;
            IncludeComments = mIncludeComments;
            ExpandRecursively = mExpandRecursively;
            IgnoreUnformatted = mIgnoreUnformatted;
        }