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

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

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

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

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

            if (ChallengeProgressText != null)
            {
                ChallengeProgressText.Dispose();
                ChallengeProgressText = null;
            }
        }
Exemple #2
0
        void ReleaseDesignerOutlets()
        {
            if (ChallengeImage != null)
            {
                ChallengeImage.Dispose();
                ChallengeImage = null;
            }

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

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

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

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

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

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

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

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

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

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