public static Settings GetSettings() { if (settings == null) { settings = ConfigFileHelper.LoadConfigFile <Settings>("Settings.xml"); } return(settings); }
private void LoadServicesManagerConfigFile() { try { this.servicesManagerConfig = ConfigFileHelper.LoadConfigFile <ServicesManagerConfig>("Services.xml"); this.IsVncServiceAvailable = true; } catch (ConfigFileDoesntExistException e) { System.Diagnostics.Debug.WriteLine("Services.xml doesn't exist, will be unable to run any external services."); } }