private void btnStart_Click(object sender, EventArgs e) { btnStart.Enabled = false; CheckerThread = new Thread(() => { new Checker(Decimal.ToInt32(MaxThreads.Value), this).Start(); }); CheckerThread.Start(); CheckerThreadMonitor.Start(); WorkingUpdater.Start(); }
private void CheckerThreadMonitor_Tick(object sender, EventArgs e) { if (!CheckerThread.IsAlive) { CheckerThreadMonitor.Stop(); WorkingUpdater.Stop(); MessageBox.Show( "Finished checking!", "Info", MessageBoxButtons.OK, MessageBoxIcon.Information ); } }