コード例 #1
0
        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();
        }
コード例 #2
0
        private void CheckerThreadMonitor_Tick(object sender, EventArgs e)
        {
            if (!CheckerThread.IsAlive)
            {
                CheckerThreadMonitor.Stop();
                WorkingUpdater.Stop();

                MessageBox.Show(
                    "Finished checking!",
                    "Info",
                    MessageBoxButtons.OK,
                    MessageBoxIcon.Information
                    );
            }
        }