Esempio n. 1
0
        /// <summary>
        /// Starts the process of running the removal agents
        /// </summary>
        private void StartRunningRemovalAgents()
        {
            try
            {
                bool areAnyBrowsersRunning = BrowserDetector.AreAnyWebBrowsersRunning();
                if (areAnyBrowsersRunning)
                {
                    MessageBox.Show(Localizer.Get().CloseWebBrowsers, Localizer.Get().UtilityName);
                }

                this.OverallResultLabel.ResetText();
                this.ResultsFlowPanel.Controls.Clear();
                this.MainProgressBar.Value = 0;
                this.PrepareBlankState();
                this.IsDoingWork = true;
                this.InitializeBackgroundWorker();
            }
            catch (Exception ex)
            {
                Logging.Logger.Log(ex, "Exception while running removal agents");
            }
        }
Esempio n. 2
0
        private void RunRemoveAgents()
        {
            try
            {
                bool areAnyBrowsersRunning = BrowserDetector.AreAnyWebBrowsersRunning();
                if (areAnyBrowsersRunning)
                {
                    MessageBox.Show(Localizer.Get().CloseWebBrowsers, Localizer.Get().UtilityName);
                }

                this.OverallResultLabel.ResetText();
                this.ResultsFlowPanel.Controls.Clear();
                this.MainProgressBar.Value = 0;
                this.PrepareBlankState();
                this.IsWorking = true;
                this.InitializeBackgroundWorker();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
        }