Exemplo n.º 1
0
        private void MakeListPlugin()
        {
            Thread.CurrentThread.Name = "ListMaker (" + providerToRun.GetType().Name + ": "
                                        + UserInputTextBox.Text + ")";
            StartProgressBar();

            try
            {
                Add(providerToRun.MakeList(strSource));
            }
            catch (ThreadAbortException) { }
            catch (Exception ex)
            {
                ErrorHandler.ListMakerText = UserInputTextBox.Text;
                ErrorHandler.Handle(ex);
                ErrorHandler.ListMakerText = "";
            }
            finally
            {
                if (FilterNonMainAuto)
                {
                    FilterNonMainArticles();
                }
                if (FilterDuplicates)
                {
                    RemoveListDuplicates();
                }
                StopProgressBar();
            }
        }
Exemplo n.º 2
0
        private void MakeListPlugin()
        {
            Thread.CurrentThread.Name = "ListMaker (" + providerToRun.GetType().Name + ": "
                                        + UserInputTextBox.Text + ")";
            StartProgressBar();

            try
            {
                Add(providerToRun.MakeList(strSource));
            }
            catch (ThreadAbortException) { }
            //catch (PageDoesNotExistException ex)
            //{
            //    MessageBox.Show(ex.Message, "Page does not exist", MessageBoxButtons.OK, MessageBoxIcon.Error);
            //}
            catch (Exception ex)
            {
                ErrorHandler.ListMakerText = UserInputTextBox.Text;
                ErrorHandler.Handle(ex);
                ErrorHandler.ListMakerText = "";
            }
            finally
            {
                if (FilterNonMainAuto)
                {
                    FilterNonMainArticles();
                }
                if (FilterDuplicates)
                {
                    removeListDuplicates();
                }
                StopProgressBar();
            }
        }
Exemplo n.º 3
0
 private void MakeTheListThreaded()
 {
     Thread.CurrentThread.Name = "ListMaker (" + _providerToRun.GetType().Name + ": "
                                 + UserInputTextBox.Text + ")";
     MakeTheList();
 }