Exemple #1
0
 // Starts/stops repeat thread
 private void PlayPause(object sender, EventArgs e)
 {
     if (_at.isOn)
     {
         this.button2.Text = "Play";
         _at.Stop();
     }
     else
     {
         this.button2.Text = "Pause";
         _at.Start();
         StoreState();
     }
 }
 // Starts/stops repeat thread
 private void PlayPause(object sender, EventArgs e)
 {
     if (_at.isOn)
     {
         this.animateBtn.Text = "Play";
         _at.Stop();
         halt = true;
     }
     else
     {
         this.animateBtn.Text = "Pause";
         _at.Start();
         halt = false;
     }
 }