Beispiel #1
0
        private void timer4_Tick(object sender, EventArgs e)    // lift goes down
        {
            if (PictureBox.Top < 290)
            {
                PictureBox.Top = PictureBox.Top + 6;            // move down by 6

                ProgressBar.Top = ProgressBar.Top + 5;

                lift_status = 1;
            }
            else if ((PictureBox.Top > 0))
            {
                FloorZeroDoors.Start();         // stop the timer for floor 0
                lift_status = 0;
            }
        }