Using Backgroundworker in application |
- Declare two backgroundworker class ( for each task respectively)
- Subcribe to two events of the backgroundworker instances.
- when click on the start button, both of tasks will run in parallel
- When both of tasks finish, the start button will be enabled.
Source code:( The demo has been writen in C# and WPF)
https://app.box.com/s/trv1sxziubhoi8taa0kj
0 comments:
Post a Comment