Ejemplo n.º 1
0
 public Settings()
 {
     StartupSettings    = new Gui.StartupSettings();
     BookSettings       = new Book.BookSettings();
     DictionarySettings = new SlobViewer.Settings();
     SpeechSettings     = new Speech.SpeechSettings();
 }
Ejemplo n.º 2
0
        public void LoadXml(XmlReader tr)
        {
            var version = 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);

            tr.ReadEndElement(); // Settings
        }
Ejemplo n.º 3
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
        }