Beispiel #1
0
 public static void ExportVariables(string Path, Dictionary <string, Variable> variables)
 {
     try
     {
         VariableSettingsManager.AddSettingRange(variables.Values.ToArray());
         VariableSettingsManager.Save(Path);
     }
     catch (Exception ex)
     {
         throw new Exception("Unable to save variables", ex);
     }
 }
Beispiel #2
0
 public static void ExportConfig(string Path, ScriptConfig[] scriptConfigs)
 {
     try
     {
         ScriptConfigSettingsManager.ClearAll();
         ScriptConfigSettingsManager.AddSettingRange(scriptConfigs);
         ScriptConfigSettingsManager.Save(Path);
     }
     catch (Exception ex)
     {
         throw new Exception("Unable to save config", ex);
     }
 }