public Form1() { InitializeComponent(); INotifier notifier = new ConfigurableNotifier((notification) => { progressTextBox.BeginInvoke((MethodInvoker)(() => progressTextBox.AppendText(notification))); }, (completedMessage) => { resultsTextBox.BeginInvoke((MethodInvoker)(() => resultsTextBox.AppendText(completedMessage))); }, (percentage) => { progressBarBackgroundWorker.ReportProgress(percentage); }); _spider = new SearchEngine(notifier); }
public Form1() { InitializeComponent(); INotifier notifier = new ConfigurableNotifier((notification) => { progressTextBox.BeginInvoke((MethodInvoker)(() => progressTextBox.AppendText(notification))); }, (completedMessage) => { resultsTextBox.BeginInvoke((MethodInvoker)(() => resultsTextBox.AppendText(completedMessage))); }, (percentage) => { progressBarBackgroundWorker.ReportProgress(percentage); }); _spider = new SearchEngine(notifier); }