Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Random r = new Random();
- private void injectTimer_Tick(object sender, EventArgs e)
- {
- if (r.Next(3) % 2 == 1)
- this.injectProgressBar.Step = (int)(r.NextDouble() * 4);
- this.injectProgressBar.PerformStep();
- if (this.injectProgressBar.Value >= this.injectProgressBar.Maximum)
- {
- this.injectTimer.Stop();
- this.injectButton.BackColor = Color.Green;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment