Пример #1
0
 static public void CheckOut(Room room)
 {
     if (room.GetGuest() != null)
     {
         room.SetGuest(null);
         --numberOfGuests;
     }
 }
 public static bool IsRoomFree(Room room)
 {
     if (room.GetGuest() == null)
     {
         return(true);
     }
     return(false);
 }
Пример #3
0
 public static bool isRoomFree(Room room)
 {
     return(room.GetGuest() == null);
 }