Ejemplo n.º 1
0
        public void SetRoom(Room r)
        {
            var handler = new Room.RoomModifiedHandler(OnRoomModified);

            if (room != null)
            {
                room.RoomModifiedEvent -= handler;
            }
            r.RoomModifiedEvent += handler;

            room   = r;
            Width  = room.Width;
            Height = room.Height;
            QueueDraw();
        }
Ejemplo n.º 2
0
        public void SetRoom(Room r)
        {
            var handler = new Room.RoomModifiedHandler(OnRoomModified);
            if (room != null)
                room.RoomModifiedEvent -= handler;
            r.RoomModifiedEvent += handler;

            room = r;
            Width = room.Width;
            Height = room.Height;
            QueueDraw();
        }