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..."; }
private void AbortButtonClick(object sender, EventArgs e) { if (ShowMessageBox(MessageType.AbortQuestion) != DialogResult.Yes) { return; } m_worker.Stop(); abortButton.Enabled = false; SetLabelText(Resources.Label_Abort); }