Can the Backgroundworker work when it reaches the "... Completed" event handler
as described in the title. My magician does his job ... finishes the first part and calls ... the completed event handler. May I say here that my background worker is working with other work by doing DoWork - = OldJob DoWork + = NewJob
and DoWorkCompleted - = OldJobCompleted DoWorkCompleted + = NewJobCompleted
Is it possible?
+2
a source to share
2 answers
I haven't tried it before, but I think it will work. Wouldn't you need to change your event handler for ProgressChanged and RunWorkerCompleted too?
I think it would be much easier to just create two background workers instead. Or, if the jobs are very similar, you can parameterize the existing background worker to be able to do both.
+1
a source to share