AutoWikiBrowser.MainForm.Stop C# (CSharp) Method

Stop() private method

private Stop ( ) : void
return void
        private void Stop()
        {
            Retries = 0;
            _stopProcessing = true;
            PageReload = false;
            NudgeTimer.Stop();

            // abort any background thread if running
            if (RunReparseEditBoxBackground != null)
                RunReparseEditBoxBackground.Abort();

            if (RunProcessPageBackground != null)
                RunProcessPageBackground.Abort();

            UpdateButtons(null, null);
            DisableButtons();

            if (_intTimer > 0)
            {// stop and reset the bot timer.
                StopDelayedAutoSaveTimer();
                EnableButtons();
                return;
            }

            StopSaveInterval();
            StopDelayedRestartTimer();

            TheSession.Editor.Abort();

            listMaker.Stop();

            if (_autoSaveEditBoxEnabled)
                EditBoxSaveTimer.Enabled = false;

            StatusLabelText = "Stopped";
            ClearBrowser();
        }
MainForm