|
-
May 23rd, 2012, 08:11 PM
#2
Re: Return items in a list before returning the list
You could make GetTestList an asynchronous method, which will basically return immediately and set off the data gathering task in a secondary thread. The method that actually does the work could raise events periodically, e.g. once for every item or perhaps every batch of ten items or something like that. The event could be raised either on the secondary thread or the UI thread but any UI updates have to be done on the UI thread regardless.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|