Example #1
0
 private void timer3_Tick(object sender, EventArgs e)
 {
     if (n > 0)
     {
         n--;
     }
     else
     {
         timer2.Stop();
         timer3.Stop();
         MessageBox.Show("Time Out!");
         n = 90;
         state7 b = new state7();
         b.Show();
         this.Hide();
     }
     s2.Text = n.ToString();
 }
Example #2
0
 private void timer2_Tick(object sender, EventArgs e)
 {
     if (meatbox6.Bounds.IntersectsWith(fk1.Bounds))
     {
         meatbox6.Top  = 25;
         meatbox6.Left = 25;
     }
     else if (meatbox6.Bounds.IntersectsWith(Goal6.Bounds))
     {
         timer1.Stop();
         timer2.Stop();
         timer3.Stop();
         MessageBox.Show("Next state !");
         n             = 91;
         meatbox6.Top  = 25;
         meatbox6.Left = 25;
         state7 a = new state7();
         a.Show();
         this.Hide();
     }
 }