There is a desktop utility. It reads a large table from a file.
How to make the UI is not blocked while the file is being processed?
Please advise me on a good guide to threads.
I didn't get banned from Google, but I can't find it myself, since I'm new to dotNet. The material is too complicated.
The asynchronous method is unnecessary.
The only thing you need is to have the status "Processing file..." in the window while the file is being loaded, but the window itself is active.
UPD: The problem with threads is that there can be multiple files. And each new file is added to the MyTable object via the add_file method. So we have some kind of state to keep between file reads.
UPD2: Differently, how to change an object that was created in a UI thread in a new thread and not block the UI thread ?