Example #1
0
        // Generally this shouldn't be used outside of the static constructor
        /// <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);
        }
Example #2
0
 /// <summary>
 /// </summary>
 static Playfields()
 {
     Instance = LoadXml(Path.Combine("XML Data", "Playfields.xml"));
 }
Example #3
0
 /// <summary>
 /// </summary>
 static Playfields()
 {
     Instance = LoadXml(Path.Combine("XML Data", "Playfields.xml"));
 }