コード例 #1
0
 void _forumsDataSource_ProgressData(object sender, ProgressDataEventArgs e)
 {
     Dispatcher.BeginInvoke(
         System.Windows.Threading.DispatcherPriority.Normal,
         new Action(() =>
     {
         lblInfo.Text = e.Text;
     }));
 }
コード例 #2
0
 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;
             }
         }
     }));
 }