示例#1
0
 /*---Time 5---*/
 private void Timer_5_Tick(object sender, EventArgs e)
 {
     pic_car_v2.Location = new Point(pic_car_v2.Location.X, pic_car_v2.Location.Y + 10);
     if (pic_car_v2.Location.Y > 340)
     {
         Timer_5.Stop();
         pic_car_v2.Image   = new Bitmap(Application.StartupPath + "\\picture\\123.png");
         pic_car_v3.Visible = true;
         Timer_6.Start();
     }
 }
示例#2
0
 /*---Time 6---*/
 private void Timer_6_Tick(object sender, EventArgs e)
 {
     pic_car_v3.Location = new Point(pic_car_v3.Location.X + 10, pic_car_v3.Location.Y);
     // txt_maso.Text = pic_car_v3.Location.ToString();
     if (pic_car_v3.Location.X > 900)
     {
         Timer_6.Stop();
         pic_car_v3.Visible  = false;
         pic_car_v3.Location = new Point(687, pic_car_v3.Location.Y);
         done = true;
     }
 }