I have an application and a variety of DLLs.
The application control a WPF GUI.
Each DLL is a stand alone algorithm.
I have to use dynamic DLL's because I want to add to a folder a new DLL and let the user see it in the GUI without the need to recompile the application again.
After the user choose a DLL the application shall go to the DLL to perform the code that is there and return to the application in the end.
I need to create events that will allow me to return to the application from the DLL (midway) and change things like text block or display a custom message box and then continue the DLL or stop in case of an error.
I have used the code that was suggested here:
and it is working great, the only problem is that I can't find and use any variables (or the text block name I created in xaml) when I go to handle the event in the application (in the link the location is where it says // do something here..)
It's like the event got nothing to do with the GUI.
How can I see all the variables and change my text block?
Any help would be highly appreciated.
Thanks in advance!