public void CarEnteredCarpark() { entryBarrier.Lower(); ticketMachine.ClearMessage(); currentSpaces = currentSpaces - 1; fullSign.SetLit(IsFull()); }
private void CarEntersCarPark(object sender, EventArgs e) { entrySensor.CarLeftSensor(carPark); if (!entrySensor.IsCarOnSensor()) { lblTicketMachine.Text = ticketMachine.ClearMessage(""); if (carPark.IsFull()) { fullSign.SetLit(1); } else { fullSign.SetLit(0); } btnCarArrivesAtEntrance.Visible = true; btnCarEntersCarPark.Visible = false; if (!(btnCarArrivesAtExit.Visible || btnDriverEntersTicket.Visible || btnCarExitsCarPark.Visible)) { btnCarArrivesAtExit.Visible = true; } } UpdateDisplay(); }
public void CarEnteredCarPark() { ticketMachine.ClearMessage(); entryBarrier.Lower(); currentSpaces--; fullSign.SetLit(this.IsFull()); }
public void CarEnteredCarPark() { ticketMachine.ClearMessage(); if (IsFull() == true) { fullsign.SetLit(true); } entryBarrier.Lower(); currentSpaces--; }
public void CarEnteredCarPark() { this.currentSpaces--; entryBarrier.Lower(); ticketMachine.ClearMessage(); if (IsFull()) { fullSign.SetLit(true); } }
public void CarEnteredCarPark(Barrier entryBarrier, TicketMachine ticketMachine, EntrySensor entrySensor, FullSign fullSign) { entrySensor.CarLeftSensor(); entryBarrier.Lower(); ticketMachine.ClearMessage(); currentSpaces--; if (IsFull() == true) { fullSign.SetLit(); } }
public void CarEnteredCarPark() { ticketMachine.ClearMessage(); entryBarrier.Lower(); currentSpaces = currentSpaces + 1; GetCurrentSpaces(); if (currentSpaces == 5) { fullSign.SetLit(true); fullSign.IsLit(); } }