예제 #1
0
 public ExitBarrier(ref CarPark aCarPark)
 {
     state = "LOWERED";
     carPark = aCarPark;
 }
예제 #2
0
        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();
        }
예제 #3
0
 public EntryBarrier(ref CarPark aCarPark)
 {
     carPark = aCarPark;
     state = "LOWERED";
 }