AutoWikiBrowser.MainForm.ReparseEditBoxPart2 C# (CSharp) Method

ReparseEditBoxPart2() private method

Second part of reparse edit box to update alerts, article stats etc. Called after ReparseEditBoxBackground completes
private ReparseEditBoxPart2 ( ) : void
return void
        private void ReparseEditBoxPart2()
        {
            UpdateCurrentTypoStats();
            ArticleInfo(false);

            txtEdit.Text = TheArticle.ArticleText;
            txtEdit.Visible = false;

            // clear any red from previous alerts to avoid entire edit box being coloured red after reparse
            txtEdit.SelectAll();
            txtEdit.SelectionBackColor = Color.White;

            if (highlightAllFindToolStripMenuItem.Checked)
                HighlightAllFind();

            Errors.Clear();

            if (scrollToAlertsToolStripMenuItem.Checked)
                HighlightErrors();

            if (syntaxHighlightEditBoxToolStripMenuItem.Checked)
                HighlightSyntax();

            txtEdit.Visible = true;

            GetDiff();

            // refocus edit box and Save button
            if (!focusAtEndOfEditTextBoxToolStripMenuItem.Checked)
            {
                txtEdit.SetEditBoxSelection(0, 0);
                txtEdit.Select(0, 0);
            }
            else
                txtEdit.Select(txtEdit.Text.Length, 0);

            txtEdit.ScrollToCaret();
            btnSave.Select();
            StopProgressBar();
            StatusLabelText = "Ready to save";
        }
MainForm