void ReleaseDesignerOutlets()
        {
            if (OpponentImageView != null)
            {
                OpponentImageView.Dispose();
                OpponentImageView = null;
            }

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

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

            if (TeamNameLabel != null)
            {
                TeamNameLabel.Dispose();
                TeamNameLabel = null;
            }
        }
Example #2
0
        void ReleaseDesignerOutlets()
        {
            if (EventAttendingLabel != null)
            {
                EventAttendingLabel.Dispose();
                EventAttendingLabel = null;
            }

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

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

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

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

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

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

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

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