Exemple #1
0
        void ReleaseDesignerOutlets()
        {
            if (HighScoreLabel != null)
            {
                HighScoreLabel.Dispose();
                HighScoreLabel = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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