Example #1
0
        /// <summary>
        /// </summary>
        public LibrarySearchCriteria Reset(LibrarySearchCriteriaResetOptions options)
        {
            if (!options.MakeNoChanges)
            {
                optionalWords                 = new List <string>();
                requiredWords                 = new List <string>();
                prohibitedWords               = new List <string>();
                balanceTypes                  = new List <Element.BalanceType>();
                isIncludeAbstractElements     = true;
                isIncludeExtendedElements     = true;
                isIncludeOnlyExtendedElements = false;
                isMatchWholeWordsOnly         = false;
                isConvertPluralsToSingular    = true;
                textFieldsToSearch            = new List <SearchableTextField>();
                textFieldsToSearch.Add(SearchableTextField.Labels);
                textFieldsToSearch.Add(SearchableTextField.Definitions);
                sECPercentage        = 0;
                sICPercentage        = 0;
                includeSECPercentage = false;
                includeSICPercentage = false;

                if (!options.KeepPath)
                {
                    ancestryPath = null;
                }
            }

            return(this);
        }
        /// <summary>
        /// </summary>
        public LibrarySearchCriteria Reset(LibrarySearchCriteriaResetOptions options)
        {
            if (!options.MakeNoChanges)
            {
                optionalWords = new List<string>();
                requiredWords = new List<string>();
                prohibitedWords = new List<string>();
                balanceTypes = new List<Element.BalanceType>();
                isIncludeAbstractElements = true;
                isIncludeExtendedElements = true;
                isIncludeOnlyExtendedElements = false;
                isMatchWholeWordsOnly = false;
                isConvertPluralsToSingular = true;
                textFieldsToSearch = new List<SearchableTextField>();
                textFieldsToSearch.Add(SearchableTextField.Labels);
                textFieldsToSearch.Add(SearchableTextField.Definitions);
                sECPercentage = 0;
                sICPercentage = 0;
                includeSECPercentage = false;
                includeSICPercentage = false;

                if (!options.KeepPath)
                    ancestryPath = null;
            }

            return this;
        }