Beispiel #1
0
        public bool HasTeam(string s)
        {
            bool result;

            s      = s.ToLower();
            result = (HomeTeamName.ToLower().CompareTo(s) == 0) || (AwayTeamName.ToLower().CompareTo(s) == 0);

            return(result);
        }
        void ReleaseDesignerOutlets()
        {
            if (AwayImage != null)
            {
                AwayImage.Dispose();
                AwayImage = null;
            }

            if (AwayScore != null)
            {
                AwayScore.Dispose();
                AwayScore = null;
            }

            if (AwayTeamName != null)
            {
                AwayTeamName.Dispose();
                AwayTeamName = null;
            }

            if (HomeImage != null)
            {
                HomeImage.Dispose();
                HomeImage = null;
            }

            if (HomeTeamName != null)
            {
                HomeTeamName.Dispose();
                HomeTeamName = null;
            }

            if (HomsScore != null)
            {
                HomsScore.Dispose();
                HomsScore = null;
            }

            if (Time != null)
            {
                Time.Dispose();
                Time = null;
            }
        }