private void BeginProcess()
{
if (!TheSession.User.IsLoggedIn)
{
Profiles.ShowDialog();
if (!TheSession.User.IsLoggedIn) return;
}
else if (
(RunProcessPageBackground != null &&
RunProcessPageBackground.ThreadStatus().IsIn(ThreadState.Running, ThreadState.Background)) ||
(RunReparseEditBoxBackground != null &&
RunReparseEditBoxBackground.ThreadStatus().IsIn(ThreadState.Running, ThreadState.Background))
)
{
StatusLabelText = "Background process running";
return;
}
_stopProcessing = false;
Start();
}