Stop() public méthode

public Stop ( ) : void
Résultat void
        private void AbortButtonClick(object sender, EventArgs e)
        {
            DialogResult result = ShowQuestionMessageBox("Do you really want to stop ?");

            if (result != DialogResult.OK)
            {
                return;
            }

            _worker.Stop();
            startButton.Enabled = true;
            abortButton.Enabled = false;
            progressLabel.Text  = "Abort...";
        }
Exemple #2
0
        private void AbortButtonClick(object sender, EventArgs e)
        {
            if (ShowMessageBox(MessageType.AbortQuestion) != DialogResult.Yes)
            {
                return;
            }

            m_worker.Stop();
            abortButton.Enabled = false;
            SetLabelText(Resources.Label_Abort);
        }