예제 #1
0
 public GarageFloor GetFloorFromSpace(ParkingSpace space)
 {
     return(FloorList.Find(f => f.ParkingSpaces.Contains(space)));
 }
예제 #2
0
 public bool CanFitInSpace(ParkingSpace parkingSpace)
 {
     return(Dimensions.GetWidth() <= parkingSpace.GetDimensions().GetWidth() &&
            Dimensions.GetLength() <= parkingSpace.GetDimensions().GetLength() &&
            Dimensions.GetHeight() <= parkingSpace.GetDimensions().GetHeight());
 }
예제 #3
0
 public void AddSpace(ParkingSpace parkingSpace)
 {
     ParkingSpaces.Add(parkingSpace);
 }