Example #1
0
        /// <summary>
        /// Function called to search the model
        /// for availability of the specified string.
        /// </summary>
        /// <param name="str">The search string</param>
        /// <returns>True, if the string is contained in the model, else false</returns>
        public override bool Contains(string str)
        {
            String status = IsActive ? "Active" : "Inactive";

            return((CurrencyName != null && CurrencyName.StartsWith(str, StringComparison.CurrentCultureIgnoreCase)) ||
                   (Description != null && Description.StartsWith(str, StringComparison.CurrentCultureIgnoreCase)));
        }