Пример #1
0
        private void CarArrivesAtExit(object sender, EventArgs e)
        {
            carPark.CarArrivedAtExit();
            exitSensor.CarDetected();
            btnCarArrivesAtExit.Visible   = false;
            btnDriverEntersTicket.Visible = true;

            if (carPark.GetCurrentSpaces() == 4)
            {
                btnCarArrivesAtExit2.Visible   = false;
                btnDriverEntersTicket2.Visible = false;
                HideBottom();
            }
            UpdateDisplay();
        }
Пример #2
0
 private void CarArrivesAtExit(object sender, EventArgs e)
 {
     carPark.CarArrivedAtExit();
     exitSensor.CarDetected();
     btnCarArrivesAtExit.Visible   = false;
     btnDriverEntersTicket.Visible = true;
     UpdateDisplay();
 }
Пример #3
0
        private void CarArrivesAtExit(object sender, EventArgs e)
        {
            carPark.CarArrivedAtExit(exitSensor, ticketValidator);

            btnCarArrivesAtExit.Visible   = false;
            btnDriverEntersTicket.Visible = true;
            btnCarExitsCarPark.Visible    = false;
            lblchip.Text = "NULL";
            UpdateDisplay();
        }
Пример #4
0
 public override void CarDetected()
 {
     carOnSensor = true;
     carpark.CarArrivedAtExit();
 }
Пример #5
0
        public override void CarDetected()
        {
            base.CarDetected();

            carPark.CarArrivedAtExit();
        }
Пример #6
0
 private void CarArrivesAtExit(object sender, EventArgs e)
 {
     carPark.CarArrivedAtExit();
     UpdateDisplay();
 }