I can't find best practice to my issue, I will appreciate any help from you – Please let me know what you think about it:
My application request data by threads. Each thread have those events:
OnStarting – Fires just before the thread start its job.
– Can be fire more than one for each thread. The result from thread can be received here
- Fires just after the job finish.
The scenario is something like that:
Let's say I have WinForm contains RadioButton for "Search Type" and Button for "Start Search".
The user choose the search type and press on "Start Search". According the search type the form knows to place new control like Grid or TextBox
on the form. The result from thread (The thread do the searching job) should display in the appropriate control which opened for this specific search.
My question: What is the best practice to bind control to the result from thread ?
Save Key=Value list for Thread=Control
Create MyGrid / MyTextBox with even OnFill. The application will use OnFill as callback in the threads.
Any other suggestion will be very welcome.
Thanks in advance !
View Complete Post