Beispiel #1
0
        private void findOddsButton_Click(object sender, EventArgs e)
        {
            findOddsButton.Enabled = false;
            stopButton.Enabled     = true;

            statusLabel.Text = "Started, awaiting update...";
            linkChecker      = new LinkChecker(this, bookmakers, (int)maxThreadsControl.Value, baseURLs);

            backgroundWorker.RunWorkerAsync(linkChecker);
        }
Beispiel #2
0
        private void backgroundWorker_DoWork(object sender, DoWorkEventArgs e)
        {
            LinkChecker lChkr = e.Argument as LinkChecker;

            while (lChkr.linksList.Count > lChkr.i && !backgroundWorker.CancellationPending)
            {
                lChkr.CheckLinks();
            }

            MessageBox.Show("Stopped checking links");
        }