static void Main(string[] args) { WaitingRoom wr = new WaitingRoom(); Patient one = new Patient(wr); Patient two = new Patient(wr); Patient three = new Patient(wr); Patient four = new Patient(wr); wr.RunWaitingRoom(); }
public Patient(WaitingRoom wr) { this.WaitingRoom = wr; numberInQueue = wr.DrawNumber(); WaitingRoom.NumberChange += this.ReactToNumber; }