void ReleaseDesignerOutlets() { if (AnswerButton != null) { AnswerButton.Dispose(); AnswerButton = null; } if (PictureButton != null) { PictureButton.Dispose(); PictureButton = null; } if (QuestionLable != null) { QuestionLable.Dispose(); QuestionLable = null; } if (QuestionTextView != null) { QuestionTextView.Dispose(); QuestionTextView = null; } if (ResetButton != null) { ResetButton.Dispose(); ResetButton = null; } if (RoundLabel != null) { RoundLabel.Dispose(); RoundLabel = null; } if (ScoreLabel != null) { ScoreLabel.Dispose(); ScoreLabel = 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; } }