I’m new in C# (I come from C) so I’m a bit confused with asynchronous operations.
I have a class that have all the “important” functions of my program, it download a file and add it to a folder, etc.
and then I have a WPF form (graphic interface), so when user select a folder it scan all the files in the folder and download a cover art for all music tracks.
I want to make a progress bar, obviously it must be asynchronous, and I don’t know who to do this.
I think I must call the “important” functions asynchronous when the user click on the button
is there any good tutorial for making this? or could you tell me the basic steps?
You could use the BackgroundWorker component, you can follow this tutorial in order to make your progress bar work.