Beispiel #1
0
        static void Main(string[] args)
        {
            var waitingRoom = new WaitingRoom();
            var patient1    = new Patient(waitingRoom);
            var patient2    = new Patient(waitingRoom);
            var patient3    = new Patient(waitingRoom);
            var patient4    = new Patient(waitingRoom);

            waitingRoom.RunWaitingRoom();
        }
Beispiel #2
0
 public Patient(WaitingRoom waitingRoom)
 {
     PatientNo = waitingRoom.PatientEntersRoom();
     waitingRoom.NumberChanged += OnNumberChanged;
     WaitingRoom = waitingRoom;
 }