AdvancedLauncher.Management.ConfigurationManager.GetConfiguration C# (CSharp) Method

GetConfiguration() public method

public GetConfiguration ( GameModel model ) : IConfiguration
model AdvancedLauncher.SDK.Model.Config.GameModel
return IConfiguration
        public IConfiguration GetConfiguration(GameModel model)
        {
            if (model == null) {
                throw new ArgumentException("model argument cannot be null");
            }
            return GetConfiguration(model.Type);
        }

Same methods

ConfigurationManager::GetConfiguration ( string gameType ) : IConfiguration

Usage Example

        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;
            }
        }
All Usage Examples Of AdvancedLauncher.Management.ConfigurationManager::GetConfiguration