Example #1
0
 public void TicketDispensed2()
 {
     ticketMachine2.CarArrived2();
     ticketMachine2.PrintTicket2();
     ticketMachine2.GetMessage2();
     entryBarrier2.Raise();
 }
Example #2
0
 public void TicketDispensed()
 {
     ticketMachine.CarArrived();
     ticketMachine.PrintTicket();
     ticketMachine.GetMessage();
     entryBarrier.Raise();
 }
Example #3
0
 public void TicketValidated2()
 {
     ticketValidator2.CarArrived();
     ticketValidator2.GetMessage();
     ticketValidator2.TicketEntered2();
     exitBarrier2.Raise();
 }
        private void DriverEntersTicket(object sender, EventArgs e)
        {
            exitBarrier.Raise();                        // raise the exit barrier
            btnDriverEntersTicket.Visible = false;
            btnCarExitsCarPark.Visible    = true;
            btnPayTicket.Visible          = true;

            if (ticketValidator.TicketEntered() != true)    // if the ticket is not paid
            {
                btnDriverEntersTicket.Visible = false;      // prevent it from being removed from the listbox
            }

            UpdateDisplay();
        }
Example #5
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();
 }
Example #6
0
 public void ticketValidated()
 {
     exitBarrier.Raise();
 }
Example #7
0
 public void TicketDispensed()
 {
     entryBarrier.Raise();
 }
Example #8
0
 public void TicketValidated(TicketValidator ticketValidator, Barrier exitBarrier, ActiveTickets activeTickets)
 {
     exitBarrier.Raise();
     ticketValidator.TicketEntered(activeTickets);
 }
Example #9
0
 public void TicketDispensed(TicketMachine ticketMachine, Barrier entryBarrier, ActiveTickets activeTickets)
 {
     entryBarrier.Raise();
     ticketMachine.PrintTicket(activeTickets);
 }
Example #10
0
 public void ticketValidated()
 {
     ticketValidator.ticketEntered();
     exitBarrier.Raise();
 }