public void SaveXml(XmlWriter tw) { tw.WriteStartElement("Settings"); tw.WriteAttributeString("Version", "1"); StartupSettings.SaveXml(tw); BookSettings.SaveXml(tw); DictionarySettings.SaveXml(tw); SpeechSettings.SaveXml(tw); tw.WriteEndElement(); // Settings }
public void SaveXml(XmlWriter tw) { tw.WriteStartElement("Settings"); tw.WriteAttributeString("Version", "2"); StartupSettings.SaveXml(tw); BookSettings.SaveXml(tw); DictionarySettings.SaveXml(tw); SpeechSettings.SaveXml(tw); TranslationSettings.SaveXml(tw); // included in Version>=2 tw.WriteEndElement(); // Settings }