private void CounterTimer_Tick(object sender, EventArgs e) { ticks += 1; ResultLabel.Text = ticks.ToString(); if (ticks == repetitionsNumber) { CounterTimer.Stop(); } }
private void CounterTimer_Tick(object sender, EventArgs e) { lblGrabbed.Text = AccountGrid.Rows.Count.ToString(); if (!GrabberThread.IsAlive) { CounterTimer.Stop(); MessageBox.Show( "Finished grabbing!", "Info", MessageBoxButtons.OK, MessageBoxIcon.Information ); } }