private void CarExitsCarPark(object sender, EventArgs e) { exitSensor.CarLeftSensor(carPark); if (!exitSensor.IsCarOnSensor()) { lblTicketValidator.Text = ticketValidator.ClearMessage(""); if (carPark.IsFull()) { fullSign.SetLit(1); } else { fullSign.SetLit(0); } btnCarExitsCarPark.Visible = false; if (carPark.GetCurrentSpaces() < 5) { btnCarArrivesAtExit.Visible = true; } if (carPark.HasSpace() && ((!btnCarEntersCarPark.Visible) || (!btnDriverPressesForTicket.Visible) || (!btnCarArrivesAtEntrance.Visible))) { btnCarArrivesAtEntrance.Visible = true; } } UpdateDisplay(); }
public void CarExitedCarpark() { exitBarrier.Lower(); ticketValidator.ClearMessage(); currentSpaces = currentSpaces + 1; fullSign.SetLit(IsFull()); }
public void CarExitedCarPark() { ticketValidator.ClearMessage(); exitBarrier.Lower(); currentSpaces++; fullSign.SetLit(this.IsFull()); }
public void CarExitedCarPark() { ticketValidator.ClearMessage(); if (fullsign.isLit() == true) { fullsign.SetLit(false); } exitBarrier.Lower(); currentSpaces++; }
public void CarExitedCarPark(Barrier exitBarrier, TicketValidator ticketValidator, ExitSensor exitSensor, FullSign fullSign) { exitSensor.CarLeftSensor(); exitBarrier.Lower(); ticketValidator.ClearMessage(); if (IsFull() == true) { fullSign.SetLit(); } currentSpaces++; }
public void CarExitedCarPark() { currentSpaces = currentSpaces - 1; ticketValidator.ClearMessage(); exitBarrier.Lower(); }