public static void Save() { try { Object2Xml <DeploymentProfile> .SaveToFile(List, Config.FileDeployProfiles); } catch (Exception e) { ErrorHandler.ShowErrors(e, "Error while saving the deployment profiles"); } }
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(); }
/// <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"); } }
/// <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"); } } }