private void SaveColor(XmlDocument xmlDoc, ColorConfigData configData) { XmlOldColor xmlColor = new XmlOldColor(); xmlColor.DrawPropertyList = new List<DrawProperty>(configData.DrawPropertyList); xmlColor.SaveConfig(xmlDoc); }
private void LoadColor(XmlDocument xmlDoc, ColorConfigData configData) { XmlOldColor xmlColor = new XmlOldColor(); xmlColor.LoadConfig(xmlDoc); if (xmlColor.DrawPropertyList.Count > 0) { configData.UpdateDrawPropertyList(xmlColor.DrawPropertyList); } }