Пример #1
0
 public LaneQueue(LaneQueue otherLQ)
 {
     LaneQueueID = otherLQ.LaneQueueID;
     QueueList   = new List <QueueTicket>(otherLQ.QueueList);
     Attendant   = new QueueAttendant(otherLQ.Attendant);
     QueueLane   = new Lane(otherLQ.QueueLane);
 }
Пример #2
0
 public LaneQueue()
 {
     QueueList          = new List <QueueTicket>();
     Attendant          = new QueueAttendant();
     QueueLane          = new Lane();
     QueueLane.Capacity = LANE_DEFAULT_CAPACITY;
     Tolerance          = LANE_DEFAULT_TOLERANCE;
 }
Пример #3
0
        public QueueAttendant(QueueAttendant queueAttendant)
            : base(
                queueAttendant.AccountNumber,
                queueAttendant.Email,
                queueAttendant.Password,
                queueAttendant.ContactNumber,
                queueAttendant.FirstName,
                queueAttendant.MiddleName,
                queueAttendant.LastName
                )
        {
            QueueAttendantID = queueAttendant.QueueAttendantID;

            if (queueAttendant.DesignatedLane == null)
            {
                DesignatedLane = new Lane();
            }
            else
            {
                DesignatedLane = new Lane(queueAttendant.DesignatedLane);
            }
        }
Пример #4
0
 public void SetAttendant(QueueAttendant attendant)
 {
     attendant.DesignatedLane = QueueLane;
     Attendant = attendant;
 }