Exemple #1
0
 public Settings()
 {
     StartupSettings     = new Gui.StartupSettings();
     BookSettings        = new Book.BookSettings();
     DictionarySettings  = new SlobViewer.Settings();
     SpeechSettings      = new Speech.SpeechSettings();
     TranslationSettings = new Translation.TranslationSettings();
 }
Exemple #2
0
        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
        }