Exemplo n.º 1
0
        /// <summary>
        /// </summary>
        /// <param name="fileName">
        /// </param>
        /// <returns>
        /// </returns>
        public static Playfields LoadXml(string fileName)
        {
            XmlSerializer serializer = new XmlSerializer(typeof(Playfields));
            TextReader    reader     = new StreamReader(fileName);
            Playfields    data       = (Playfields)serializer.Deserialize(reader);

            reader.Close();
            return(data);
        }
Exemplo n.º 2
0
 /// <summary>
 /// </summary>
 static Playfields()
 {
     Instance = LoadXml(Path.Combine("XML Data", "Playfields.xml"));
 }
Exemplo n.º 3
0
 /// <summary>
 /// </summary>
 static Playfields()
 {
     Instance = LoadXml(Path.Combine("XML Data", "Playfields.xml"));
 }