hlsdk

Untitled

Dec 15th, 2010
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. Random r = new Random();
  2. private void injectTimer_Tick(object sender, EventArgs e)
  3. {
  4. if (r.Next(3) % 2 == 1)
  5. this.injectProgressBar.Step = (int)(r.NextDouble() * 4);
  6.  
  7. this.injectProgressBar.PerformStep();
  8.  
  9. if (this.injectProgressBar.Value >= this.injectProgressBar.Maximum)
  10. {
  11. this.injectTimer.Stop();
  12. this.injectButton.BackColor = Color.Green;
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment