OSDN Git Service

AsParallelの指定タイミング変更
authorsyo68k <syo68k@users.sourceforge.jp>
Sun, 30 Jan 2011 09:33:45 +0000 (09:33 +0000)
committerKimura Youichi <kim.upsilon@bucyou.net>
Sat, 18 Feb 2012 14:18:53 +0000 (23:18 +0900)
git-svn-id: http://svn.sourceforge.jp/svnroot/tween/trunk@1425 e39ad16e-3079-482e-bb30-4b4d378143b6

Tween/EventViewerDialog.vb

index 2087d15..1d15a5b 100644 (file)
@@ -96,12 +96,12 @@ Public Class EventViewerDialog
     Private Sub CreateFilterdEventSource()
         If EventSource IsNot Nothing AndAlso EventSource.Count > 0 Then
             Dim matchDelegate As New Func(Of Twitter.FormattedEvent, Boolean)(AddressOf IsFilterMatch)
-            _filterdEventSource = (From x As Twitter.FormattedEvent In EventSource
+            _filterdEventSource = (From x As Twitter.FormattedEvent In EventSource.AsParallel
                                     Where If(CheckExcludeMyEvent.Checked, Not x.IsMe, True)
                                     Where CBool(x.Eventtype And ParseEventTypeFromTag())
                                     Where matchDelegate(x)
                                     Order By x.CreatedAt Descending
-                                    Select x).AsParallel.ToArray()
+                                    Select x).ToArray()
             _ItemCache = Nothing
             EventList.VirtualListSize = _filterdEventSource.Count
         End If