Пример #1
0
        public bool Contains(string text)
        {
            if (ReaderCard.IndexOf(text, StringComparison.CurrentCultureIgnoreCase) >= 0 ||
                CardNumber.IndexOf(text, StringComparison.CurrentCultureIgnoreCase) >= 0 ||
                Time.IndexOf(text, StringComparison.CurrentCultureIgnoreCase) >= 0)
            {
                return(true);
            }

            for (int i = 0; i < 3; i++)
            {
                if ((_tracks[i] != null) && _tracks[i].Contains(text))
                {
                    return(true);
                }
            }

            return(false);
        }