public static void Load(string path) { var serializer = new XmlSerializer(typeof(Zoo)); using (var stream = new FileStream(path, FileMode.Open)) { zoo = serializer.Deserialize(stream) as Zoo; } changed = false; }
public static void Initialise() { zoo = new Zoo(); changed = false; }