Exemplo n.º 1
0
 public AppConfig(string filename)
 {
     System.Configuration.ExeConfigurationFileMap _cfgMap = new System.Configuration.ExeConfigurationFileMap();
     _cfgMap.ExeConfigFilename = filename;
     _config = System.Configuration.ConfigurationManager.OpenMappedExeConfiguration
                   (_cfgMap, System.Configuration.ConfigurationUserLevel.None);
     _app_settings = new config.Internals.AppSettingsClass(ref _config);
 }
Exemplo n.º 2
0
 public AppConfig(string filename)
 {
     System.Configuration.ExeConfigurationFileMap _cfgMap = new System.Configuration.ExeConfigurationFileMap();
     _cfgMap.ExeConfigFilename = filename;
     _config = System.Configuration.ConfigurationManager.OpenMappedExeConfiguration
                 (_cfgMap, System.Configuration.ConfigurationUserLevel.None);
     _app_settings = new config.Internals.AppSettingsClass(ref _config);
 }