Beispiel #1
0
        private void backgroundWorker2_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            StopWaiting();
            if (e.Error != null)
            {
                MessageBox.Show("Error :-( " + e.Error.Message); return;
            }
            if (e.Cancelled)
            {
                return;
            }
            FeedINfo evts = (FeedINfo)e.Result;

            news.feedInfo = evts;
            StartWaiting();
            FeedINfoContentProcessor processor = new FeedINfoContentProcessor(news.feedInfo);

            processor.Process();
            newsProcessorView1.ProcessResult = processor.WordAppeances;
            graph1.LoadData(processor.Graph());

            StopWaiting();


            //news.DataSource = evts;
            //news.DisplayMember = "Display";
            //news.ValueMember = "This";
            lastUpdated  = DateTime.Now;
            lstatus.Text = string.Format("Updated: {0}", lastUpdated.ToString("HH:mm"));
        }
Beispiel #2
0
        private void processToolStripMenuItem_Click(object sender, EventArgs e)
        {
            StartWaiting();
            FeedINfoContentProcessor processor = new FeedINfoContentProcessor(news.feedInfo);

            processor.Process();
            StopWaiting();
            newsProcessorView.ShowResults(processor.WordAppeances);
        }