public CheckGame ( |
||
model | ||
Résultat | bool |
private void OnProfileChanged(object sender, BaseEventArgs e) { GameModel model = ProfileManager.CurrentProfile.GameModel; bool gameAvailable = ConfigurationManager.CheckGame(model); if (Community != null) { Community.IsEnabled = ConfigurationManager.GetConfiguration(model).IsWebAvailable; } if (Gallery != null) { Gallery.IsEnabled = gameAvailable; } if (Personalization != null) { Personalization.IsEnabled = gameAvailable; } }
private void OnFileSystemLocked(object sender, LockedEventArgs e) { if (Personalization == null) { return; } if (e.IsLocked) { //Выбираем первую вкладку и отключаем персонализацию (на всякий случай) Personalization.IsEnabled = false; } else { //Включаем персонализации обратно если игра определена if (ConfigurationManager.CheckGame(ProfileManager.CurrentProfile.GameModel)) { Personalization.IsEnabled = true; } } }