Exemple #1
0
        private void CounterTimer_Tick(object sender, EventArgs e)
        {
            ticks += 1;

            ResultLabel.Text = ticks.ToString();

            if (ticks == repetitionsNumber)
            {
                CounterTimer.Stop();
            }
        }
Exemple #2
0
        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
                    );
            }
        }