public void TicketDispensed2() { ticketMachine2.CarArrived2(); ticketMachine2.PrintTicket2(); ticketMachine2.GetMessage2(); entryBarrier2.Raise(); }
public void TicketDispensed() { ticketMachine.CarArrived(); ticketMachine.PrintTicket(); ticketMachine.GetMessage(); entryBarrier.Raise(); }
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(); }
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(); }
public void ticketValidated() { exitBarrier.Raise(); }
public void TicketDispensed() { entryBarrier.Raise(); }
public void TicketValidated(TicketValidator ticketValidator, Barrier exitBarrier, ActiveTickets activeTickets) { exitBarrier.Raise(); ticketValidator.TicketEntered(activeTickets); }
public void TicketDispensed(TicketMachine ticketMachine, Barrier entryBarrier, ActiveTickets activeTickets) { entryBarrier.Raise(); ticketMachine.PrintTicket(activeTickets); }
public void ticketValidated() { ticketValidator.ticketEntered(); exitBarrier.Raise(); }