Exemplo n.º 1
0
        private void stopButton_Click(object sender, EventArgs e)
        {
            //Press this button to stop the countdown and quit
            stop = true;
            BW1.CancelAsync();

            startButton.Enabled = true;
            stopButton.Enabled  = false;
        }
Exemplo n.º 2
0
        private void main()
        {
            writeLog("Application started");
            restartTime.Text = "15";
            BW1.WorkerSupportsCancellation = true;
            BW1.RunWorkerAsync();

            startButton.Enabled = false;
            stopButton.Enabled  = true;
        }