public Settings() { StartupSettings = new Gui.StartupSettings(); BookSettings = new Book.BookSettings(); DictionarySettings = new SlobViewer.Settings(); SpeechSettings = new Speech.SpeechSettings(); TranslationSettings = new Translation.TranslationSettings(); }
public void LoadXml(XmlReader tr) { var version = XmlConvert.ToInt32(tr.GetAttribute("Version")); tr.ReadStartElement("Settings"); StartupSettings = new Gui.StartupSettings(tr); BookSettings = new Book.BookSettings(tr); DictionarySettings = new SlobViewer.Settings(tr); SpeechSettings = new Speech.SpeechSettings(tr); // Version 2 if (version > 1) { TranslationSettings = new Translation.TranslationSettings(tr); } tr.ReadEndElement(); // Settings }