Esempio n. 1
0
        public XamlName(string localName, string namespaceName = null)
        {
            this.LocalName     = localName ?? String.Empty;
            this.NamespaceName = namespaceName ?? String.Empty;

            int typeSeparatorIndex = LocalName.IndexOf('.');

            if (typeSeparatorIndex != -1)
            {
                MemberName         = LocalName.Substring(typeSeparatorIndex + 1);
                ContainingTypeName = new XamlName(LocalName.Substring(0, typeSeparatorIndex), NamespaceName);

                IsMemberName = true;
            }
            else
            {
                MemberName = LocalName;
            }
        }
Esempio n. 2
0
        public bool Search(string text)
        {
            StringComparison sc = StringComparison.InvariantCultureIgnoreCase;

            if (text == "")
            {
                return(true);
            }

            if (Title != null && Title.IndexOf(text, sc) > -1)
            {
                return(true);
            }
            else if (Season != null && Season.IndexOf(text, sc) > -1)
            {
                return(true);
            }
            else if (Competition != null && Competition.IndexOf(text, sc) > -1)
            {
                return(true);
            }
            else if (LocalName != null && LocalName.IndexOf(text, sc) > -1)
            {
                return(true);
            }
            else if (VisitorName != null && VisitorName.IndexOf(text, sc) > -1)
            {
                return(true);
            }
            else if (Description != null && Description.IndexOf(text, sc) > -1)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }