Example #1
0
 /// <summary>
 /// Save general performance.
 /// </summary>
 /// <param name="model"></param>
 public static void SaveGeneral(PerformanceModel model)
 {
     SavePerformance(Constants.PerformanceGeneralFileName, model);
 }
Example #2
0
 /// <summary>
 /// Save customize performance.
 /// </summary>
 /// <param name="model"></param>
 public static void SaveCustomise(PerformanceModel model)
 {
     SavePerformance(Constants.PerformanceCustomiseFileName, model);
 }
Example #3
0
        /// <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));
        }