void _forumsDataSource_ProgressData(object sender, ProgressDataEventArgs e) { Dispatcher.BeginInvoke( System.Windows.Threading.DispatcherPriority.Normal, new Action(() => { lblInfo.Text = e.Text; })); }
void _forumsDataSource_ProgressData(object sender, ProgressDataEventArgs e) { Dispatcher.BeginInvoke( System.Windows.Threading.DispatcherPriority.Normal, new Action(() => { if (_groupView != null) { lblInfo.Text = e.Newsgroup + ": " + e.Text; NewsgroupVM grp = _groupView.SourceCollection.Cast <NewsgroupVM>() .FirstOrDefault( p => string.Equals(p.Name, e.Newsgroup, StringComparison.OrdinalIgnoreCase)); if (grp != null) { grp.Message = e.Text; } } })); }