Beispiel #1
0
 private void btnEmergencyEntrance_Click(object sender, EventArgs e)
 {
     if (carPark.emergency == false)
     {
         ticketMachine.SpacesMessage();
         ticketMachine.PrintTicket();
     }
     else
     {
         ticketMachine.ClearMessage();
         entryBarrier.Raise();
         UpdateDisplay();
     }
     UpdateDisplay();
 }
Beispiel #2
0
 private void btnEmergencyExit_Click(object sender, EventArgs e)
 {
     ticketValidator.ClearMessage();
     exitBarrier.Raise();
     UpdateDisplay();
 }
Beispiel #3
0
 public void TicketDispensed()
 {
     entryBarrier.Raise();
 }
Beispiel #4
0
 public void TicketValidated()
 {
     exitBarrier.Raise();
 }