private void ReparseEditBox()
{
if (TheArticle == null)
return;
if ((RunProcessPageBackground != null && (RunProcessPageBackground.ThreadStatus() == ThreadState.Running
|| RunProcessPageBackground.ThreadStatus() == ThreadState.Background)) ||
(RunReparseEditBoxBackground != null && (RunReparseEditBoxBackground.ThreadStatus() == ThreadState.Running
|| RunReparseEditBoxBackground.ThreadStatus() == ThreadState.Background)))
{
StatusLabelText = "Background process running";
return;
}
StatusLabelText = "Processing page";
StartProgressBar();
// refresh text from text box to pick up user changes
TheArticle.AWBChangeArticleText("Reparse", txtEdit.Text, false);
RunReparseEditBoxBackground = new BackgroundRequest();
RunReparseEditBoxBackground.Execute(ReparseEditBoxBackground);
RunReparseEditBoxBackground.Complete += ReparseEditBoxComplete;
}