Hi,
What's the best approach/pattern I should use for the following?
- Have a C# UI solution that will have (a) Winforms/WPF UI, and (b) class library.
- The UI will have to start a separate thread for the routine in the class library that will be polling
- The class library will then need to trigger a callback function in the UI to update UI fields if necessary
How do I best implement this callback arrangement so that the class library can be reused, and ideally it should have no dependency on the UI component.
thanks