Пример #1
0
 public static Settings GetSettings()
 {
     if (settings == null)
     {
         settings = ConfigFileHelper.LoadConfigFile <Settings>("Settings.xml");
     }
     return(settings);
 }
Пример #2
0
 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.");
     }
 }