Ejemplo n.º 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;
         Tstate11 b = new Tstate11();
         b.Show();
         this.Hide();
     }
     s5.Text = n.ToString();
 }
Ejemplo n.º 2
0
 private void timer2_Tick(object sender, EventArgs e)
 {
     if (meatbox10.Bounds.IntersectsWith(jk1.Bounds))
     {
         meatbox10.Top  = 25;
         meatbox10.Left = 25;
     }
     else if (meatbox10.Bounds.IntersectsWith(Goal11.Bounds))
     {
         timer1.Stop();
         timer2.Stop();
         timer3.Stop();
         MessageBox.Show("Next state !");
         n              = 91;
         meatbox10.Top  = 25;
         meatbox10.Left = 25;
         Tstate11 a = new Tstate11();
         a.Show();
         this.Hide();
     }
 }