Example #1
0
 private void pic_pau_st_Click(object sender, EventArgs e)
 {
     start_pau = !start_pau;
     if (start_pau)
     {
         audiochayGame.Stop();
         pic_pau_st.Image = Properties.Resources.start_icon;
         TM_NguoiHung.Stop();
         TM_BiaVang.Stop();
     }
     else
     {
         audiochayGame.PlayLooping();
         pic_pau_st.Image = Properties.Resources.pause_icon;
         TM_NguoiHung.Start();
         TM_BiaVang.Start();
     }
 }
Example #2
0
 private void StopGame()
 {
     TM_NguoiHung.Stop();
     TM_BiaVang.Stop();
 }