示例#1
0
        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();
        }
示例#2
0
 public override void CarDetected2()
 {
     carOnSensor = true;
     carpark.CarArrivedAtExit2();
 }