/// <summary> /// Save general performance. /// </summary> /// <param name="model"></param> public static void SaveGeneral(PerformanceModel model) { SavePerformance(Constants.PerformanceGeneralFileName, model); }
/// <summary> /// Save customize performance. /// </summary> /// <param name="model"></param> public static void SaveCustomise(PerformanceModel model) { SavePerformance(Constants.PerformanceCustomiseFileName, model); }
/// <summary> /// Save performance. /// </summary> /// <param name="model"></param> private static void SavePerformance(string fileName, PerformanceModel model) { XmlEditor xmlEditor = new XmlEditor(XmlUtils.GetPath(fileName), Constants.PerformanceRootNodeName); xmlEditor.AddNode(Constants.PerformanceRootNodeName, XmlSerialization.Serialize(model)); }