Пример #1
0
        public bool CheckAvailOfLane(int LaneID, List <int> Hours)
        {
            BowlingLane lane         = _bowlinglanes[LaneID];
            bool        Availability = true;

            for (int i = 0; i < Hours.Count; i++)
            {
                if (lane.GetStatus(Hours[i]) == Status.Occupied)
                {
                    Availability = false;
                }
            }
            return(Availability);
        }
Пример #2
0
        public Status GetStatus(int LaneID, int Hour)
        {
            BowlingLane lane = _bowlinglanes[LaneID];

            return(lane.GetStatus(Hour));
        }