示例#1
0
        void ReleaseDesignerOutlets()
        {
            if (CommentContainerView != null)
            {
                CommentContainerView.Dispose();
                CommentContainerView = null;
            }

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

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

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

            if (CommentTextViewHeightConstraint != null)
            {
                CommentTextViewHeightConstraint.Dispose();
                CommentTextViewHeightConstraint = null;
            }
        }
示例#2
0
        void ReleaseDesignerOutlets()
        {
            if (AnswerTextView != null)
            {
                AnswerTextView.Dispose();
                AnswerTextView = null;
            }

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

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

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

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

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

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

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

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

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