Esempio n. 1
0
 public static void Save()
 {
     try {
         Object2Xml <DeploymentProfile> .SaveToFile(List, Config.FileDeployProfiles);
     } catch (Exception e) {
         ErrorHandler.ShowErrors(e, "Error while saving the deployment profiles");
     }
 }
Esempio n. 2
0
 private void SaveProfilesList()
 {
     try {
         Object2Xml <DeployProfile> .SaveToFile(DeployProfile.List, Config.FileDeployProfiles);
     } catch (Exception e) {
         ErrorHandler.ShowErrors(e, "Error while saving the deployment profiles");
     }
     Config.Instance.CurrentDeployProfile = DeployProfile.Current.Name;
     UpdateCombo();
 }
Esempio n. 3
0
 /// <summary>
 /// Call this method to save the content of the config.instance into an .xml file
 /// </summary>
 public static void Save()
 {
     try {
         if (!String.IsNullOrWhiteSpace(FileSettings))
         {
             Object2Xml <ConfigObject> .SaveToFile(_instance, FileSettings);
         }
     } catch (Exception e) {
         ErrorHandler.ShowErrors(e, "Error when saving settings");
     }
 }
Esempio n. 4
0
 /// <summary>
 /// Saves the list of environnement
 /// </summary>
 public static void SaveList()
 {
     // sort by appli then envletter
     _listOfEnv.Sort((env1, env2) => {
         var comp = string.Compare(env1.Name, env2.Name, StringComparison.CurrentCultureIgnoreCase);
         return(comp == 0 ? string.Compare(env1.Suffix, env2.Suffix, StringComparison.CurrentCultureIgnoreCase) : comp);
     });
     if (!string.IsNullOrEmpty(Config.FileProEnv))
     {
         try {
             Object2Xml <ProEnvironmentObject> .SaveToFile(_listOfEnv, Config.FileProEnv);
         } catch (Exception e) {
             ErrorHandler.ShowErrors(e, "Error when saving ProgressEnvironnement.xml");
         }
     }
 }