Exemple #1
0
        /// <summary>
        /// EXECUTES WHEN WE LOAD THE MENU PAGE
        /// </summary>
        void LoadMenuPage(object sender, EventArgs e)
        {
            // CHECK FOR PREVIOUS EXCEPTION:
            ErrorReporting.CheckForPreviousException();

            // SETUP ADVERTISEMENT:
            if (Globals.bDisplayAds)
            {
                Advertising.GetAdForGrid(LayoutRoot, 2, 0, 0);
            }

            // DISPLAY CURRENT HIGH SCORES:
            lblHighScoreEasy.Text = AppResources.HighScoreEasy + ": " + Globals.Data.HighScoreEasy;
            lblHighScoreHard.Text = AppResources.HighScoreHard + ": " + Globals.Data.HighScoreHard;

            if (Globals.bGameIsPaused == true)
            {
                btnGame.Content = AppResources.ResumeGame;
            }
            else
            {
                btnGame.Content = AppResources.StartGame;
            }
        }
 void SendFeedback(Object sender, EventArgs e)
 {
     // if (MessageBox.Show("Send feedback?", AppResources.QuestionsOrComments, MessageBoxButton.OKCancel) == MessageBoxResult.OK)
     ErrorReporting.SendFeedback();
 }