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(); }
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(); }