Updating ui from another thread c Sex cam live chatroulette
All answers to related questions I've found so far are too complex. 2 - Can you suggest any further reading about multithreading and async/await in C#? msdn.microsoft.com/en-us/magazine/jj991977blog.stephencleary.com/2012/02/And the rest of Stephen Cleary's blog.All I need is to create a new task from a button click that displays a message in a textblock control. I learned my information from a combination of him and CLR via C# by Jeremy Richter.Obviously I would run the calculations in another thread, so the UI doesn't freeze, but I don't know how to update the UI, since all the calculation methods are part of another class.
I am currently writing my first program on C# and I am extremely new to the language (used to only work with C so far).
In summary: I have a back-end making changes to properties, and I want those changes to appear on the GUI.
The back-end is a genetic algorithm, so its operation is broken down into discrete generations.
The application doesn't 'crash', it just turns grey when iterating through directories.
When it's done, the GUI becomes responsive again. How do I know for sure it's being processed on a different thread?