Beispiel #1
0
 private void LoadConfig()
 {
     string path = System.Reflection.Assembly.GetExecutingAssembly().Location.ToLowerInvariant();
     Configuration cfg = ConfigurationManager.OpenExeConfiguration(path);
     if (cfg.AppSettings.Settings.AllKeys.Contains(ConfigConstants.EventLogs) == true)
         _logs = EventLogs.Load(cfg.AppSettings.Settings[ConfigConstants.EventLogs].Value);
 }