//triggers the security check button, which sends the bag at the top left corner private void switchTimer_Tick(object sender, EventArgs e) { Timer_Game.Stop(); blink2.Start(); pb_luggage.Top = 0; pb_luggage.Left = 0; }
private void Form1_Load(object sender, EventArgs e) { Timer_Game.Start(); HideBlock(); YouWinLabel.Hide(); GameOverLabel.Hide(); }
//when you click on the security button it sends the seized bag back to the conveyer private void buttonSec_Click(object sender, EventArgs e) { switchTimer.Stop(); pb_luggage.Visible = true; Timer_Game.Start(); blink2.Stop(); buttonSec.BackColor = Color.Blue; switchTimer.Start(); }
private void Timer_Game2_Tick(object sender, EventArgs e) { moveBlock(-1); if (block.Left < -5) { Timer_Game2.Stop(); Timer_Game.Start(); } }
private void Form1_Load(object sender, EventArgs e) { Timer_Game.Interval = 1; //red square timer Timer_Game.Start(); timerBag4.Interval = 1; //orange square timer(from check in 2) timer2.Interval = 14100; //timer for bag stuck randomization timer2.Start(); switchTimer.Interval = 11200; //timer for SECURITY CHECK randomization switchTimer.Start(); pb_luggage4.Visible = false; //shows the first bag of check in 2 pb_luggage5.Visible = false; //shows the second bag of check in 2 pb_luggage6.Visible = false; //shows the third bag of check in 2 }