예제 #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();
            }
        }
예제 #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();
            }
        }
예제 #3
0
 private void MakeTheListThreaded()
 {
     Thread.CurrentThread.Name = "ListMaker (" + _providerToRun.GetType().Name + ": "
                                 + UserInputTextBox.Text + ")";
     MakeTheList();
 }