public void Initialize(string ConfigFileLoc)
 {
     if (File.Exists(ConfigFileLoc))
     {
         var          ConfigLoader = new XmlSerializer(typeof(PersistentConfiguration));
         StreamReader ConfigReader = File.OpenText(ConfigFileLoc);
         var          Config       = (PersistentConfiguration)ConfigLoader.Deserialize(ConfigReader);
         ConfigReader.Close();
         Configuration = Config;
         ConfigFile    = ConfigFileLoc;
     }
     else
     {
         //if (LogManager.Singleton != null) LogManager.Singleton.LogMessage("ConfigurationManager: Could not load config. File not found. " + ConfigFileLoc);
     }
 }
 public void Initialize(string ConfigFileLoc)
 {
     if (File.Exists(ConfigFileLoc))
     {
         var ConfigLoader = new XmlSerializer(typeof (PersistentConfiguration));
         StreamReader ConfigReader = File.OpenText(ConfigFileLoc);
         var Config = (PersistentConfiguration) ConfigLoader.Deserialize(ConfigReader);
         ConfigReader.Close();
         Configuration = Config;
         ConfigFile = ConfigFileLoc;
     }
     else
     {
         //if (LogManager.Singleton != null) LogManager.Singleton.LogMessage("ConfigurationManager: Could not load config. File not found. " + ConfigFileLoc);
     }
 }
 public void Initialize(string ConfigFileLoc)
 {
     try
     {
         var          ConfigLoader = new XmlSerializer(typeof(PersistentConfiguration));
         StreamReader ConfigReader = File.OpenText(ConfigFileLoc);
         var          Config       = (PersistentConfiguration)ConfigLoader.Deserialize(ConfigReader);
         ConfigReader.Close();
         Configuration = Config;
         ConfigFile    = ConfigFileLoc;
     }
     catch (Exception e)
     {
         Console.ForegroundColor = ConsoleColor.Red;
         Console.WriteLine("Unable to load configuration file:\n{0}", e);
         Console.ResetColor();
         Environment.Exit(1);
         //if (LogManager.Singleton != null) LogManager.Singleton.LogMessage("ConfigurationManager: Could not load config. File not found. " + ConfigFileLoc);
     }
 }