private void btnCarArrivesAtExit2_Click(object sender, EventArgs e) { carPark.CarArrivedAtExit2(); exitSensor2.CarDetected2(); btnCarArrivesAtExit2.Visible = false; btnDriverEntersTicket2.Visible = true; if (carPark.GetCurrentSpaces() == 4) { btnCarArrivesAtExit.Visible = false; btnDriverEntersTicket.Visible = false; HideTop(); } UpdateDisplay(); }
public override void CarDetected2() { carOnSensor = true; carpark.CarArrivedAtExit2(); }