AutoWikiBrowser.MainForm.btnStop_Click C# (CSharp) Method

btnStop_Click() private method

private btnStop_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void btnStop_Click(object sender, EventArgs e)
        {
            // ask user confirmation if manual changes in edit box (edit box populated and not same as article text)
            if (TheArticle == null || TheArticle.ArticleText.Equals(txtEdit.Text) || txtEdit.Text.Length == 0 ||
            MessageBox.Show("There are manual changes to the page text in the edit box, are you sure you want to stop?", "Confirm stop", MessageBoxButtons.YesNo) == DialogResult.Yes)
                Stop();
        }
MainForm