예제 #1
0
        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
        }
예제 #2
0
        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
        }