What is the simplest way to implement multithredding in c# to existing code

Posted by Kaeso on Stack Overflow See other posts from Stack Overflow or by Kaeso
Published on 2011-01-08T01:38:32Z Indexed on 2011/01/08 1:54 UTC
Read the original article Hit count: 597

Filed under:
|
|

I have already implemented a functionnal application that parses 26 pages of html all at once to produce an xml file with data contained on the web pages. I would need to implement a thread so that this method can work in the background without causing my app to seems unresponsive.

Secondly, I have another function that is decoupled from the first one which compares two xml files to produce a third one and then transform this third xml file to produce an html page using XSLT. This would have to be on a thread, where I can click Cancel to stop the thread whithout crashing the app.

What is the easiest best way to do this using WPF forms in VS 2010 ? Note: I cannot use the BackgroundWorker component as it is grayed out in the toolbox.

© Stack Overflow or respective owner

Related posts about c#

Related posts about wpf