Example #1
0
        void Game_Deactivated(object sender, DeactivatedEventArgs e)
        {
            SettingsData data = new SettingsData();

            data.Highscore = highscore;
            data.SoundEnabled = soundEnabled;
            data.Difficulty = difficulty;
            data.GamesLaunched = gamesLaunched;
            data.GameIsReviewed = gameIsReviewed;

            data.Save();

            PhoneApplicationService.Current.State["gameState"] = gameState;
            SaveGameData();
        }
Example #2
0
        void Game_Closing(object sender, ClosingEventArgs e)
        {
            SettingsData data = new SettingsData();

            data.Highscore = highscore;
            data.SoundEnabled = soundEnabled;
            data.Difficulty = difficulty;
            data.GamesLaunched = gamesLaunched;
            data.GameIsReviewed = gameIsReviewed;

            data.Save();

            SaveGameData();
        }