예제 #1
0
 private double FindDistanceBetweenRooms(Room room1, Room room2)
 {
     Vector3D x = room1.Location - room2.Location;
     return Math.Abs(x.Length);
 }
예제 #2
0
 protected bool IsSpecifiedGuestInRoom(Guest guest, Room room)
 {
     if (guest.FirstName == room.Guest.FirstName && guest.LastName == room.Guest.LastName) {
         return true;
     }
     return false;
 }