public GetConfiguration ( |
||
model | ||
return | IConfiguration |
public IConfiguration GetConfiguration(GameModel model)
{
if (model == null) {
throw new ArgumentException("model argument cannot be null");
}
return GetConfiguration(model.Type);
}
ConfigurationManager::GetConfiguration ( string gameType ) : IConfiguration |
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; } }