Ejemplo n.º 1
0
        public void LoadSettings(Stream input)
        {
            XmlReader     xr  = XmlReader.Create(input);
            XmlSerializer ser = new XmlSerializer(typeof(Settings));
            Settings      s   = (Settings)ser.Deserialize(xr);

            video = s.video;
            sound = s.sound;
            game  = s.game;
            xr.Close();
        }
Ejemplo n.º 2
0
 public void LoadSettings(Stream input)
 {
     XmlReader xr = XmlReader.Create(input);
     XmlSerializer ser = new XmlSerializer(typeof(Settings));
     Settings s = (Settings)ser.Deserialize(xr);
     video = s.video;
     sound = s.sound;
     game = s.game;
     xr.Close();
 }