Hi, I'm calling an assembly from my main WinForm. Now, that assembly is loading a file (DownloadFileGroupAsync("myFile")) in async mode. There is an eventhandler that would scream on completion of the download. Since I must return the instance to the main WinForm I wonder how I could make my method (in the invoked assembly) wait for that download to complete. How do I use the "Completed"-event in conjunction with the return.
I hope I made myself clear. The "Completed"-event should be the trigger for the invoked method to return the file to the main WinForm.
Any clue how I could bind that event to the return?
Any hint highl apperciated. Thanks
I hope I made myself clear. The "Completed"-event should be the trigger for the invoked method to return the file to the main WinForm.
Any clue how I could bind that event to the return?
Any hint highl apperciated. Thanks