public ExitBarrier(ref CarPark aCarPark) { state = "LOWERED"; carPark = aCarPark; }
private void btnStart_Click(object sender, EventArgs e) { btnStart.Text = "RESTART"; carPark = new CarPark(); entryBarrier = new EntryBarrier(ref carPark); exitBarrier = new ExitBarrier(ref carPark); fullSign = new FullSign(); coinMachine = new CoinMachine(); btnCarArrives.Visible = true; btnCarArrivesAtExit.Visible = false; btnEnterCarPark.Visible = false; btnEnterCoin.Visible = false; btnExitCarPark.Visible = false; btnPressForCoin.Visible = false; btnPaymentforCoin.Visible = false; UpdateDisplay(); }
public EntryBarrier(ref CarPark aCarPark) { carPark = aCarPark; state = "LOWERED"; }