private void CarArrivesAtEntrance(object sender, EventArgs e)
        {
            btnCarArrivesAtEntrance.Visible   = false;
            btnDriverPressesForTicket.Visible = true;
            entrySensor.CarDetected();

            UpdateDisplay();
        }
Exemplo n.º 2
0
 private void CarArrivesAtEntrance(object sender, EventArgs e)
 {
     entrySensor.CarDetected(carPark);
     if (entrySensor.IsCarOnSensor())
     {
         lblTicketMachine.Text             = ticketMachine.GetMessage("Please press to get a ticket");
         btnCarArrivesAtEntrance.Visible   = false;
         btnDriverPressesForTicket.Visible = true;
         UpdateDisplay();
     }
 }
Exemplo n.º 3
0
 private void button3_Click(object sender, EventArgs e)
 {
     //carPark.TicketDispensed(ticketMachine, entryBarrier, activeTickets);
     //btnPay.Visible = false;
     btnCarArrivesAtEntrance.Visible   = false;
     btnDriverPressesForTicket.Visible = false;
     btnCarEntersCarPark.Visible       = false;
     btnCarArrivesAtExit.Visible       = false;
     btnDriverEntersTicket.Visible     = false;
     btnCarExitsCarPark.Visible        = false;
     fullSign.emergencyLit();
     entryBarrier.Raise();
     exitBarrier.Raise();
     entrySensor.CarDetected();
     exitSensor.CarDetected();
     lblSpaces.Text  = "EMERGENCY !!!";
     lblchip.Text    = "NULL";
     button1.Visible = false;
     UpdateDisplay();
 }
Exemplo n.º 4
0
 public void CarArrivedAtEntrance(EntrySensor entrySensor, TicketMachine ticketMachine)
 {
     entrySensor.CarDetected();
     ticketMachine.CarArrived();
 }
Exemplo n.º 5
0
 public void CarArrivedAtEntrance()
 {
     entrySensor.CarDetected();
     ticketMachine.GetMessage();
 }
 private void CarArrivesAtEntrance(object sender, EventArgs e)
 {
     entrySensor.CarDetected();
     UpdateDisplay();
 }