Beispiel #1
0
        internal static bool load(string file)
        {
            EventList <Room> rooms = deserializeFromXML(file);

            if (rooms == null)
            {
                return(false);
            }

            foreach (Room room in Rooms)
            {
                foreach (Heater heater in room.Heaters)
                {
                    if (heater.Valve != null)
                    {
                        calibration.deactivateValve(heater.Valve);
                    }
                }
            }

            Rooms = rooms;

            return(true);
        }