Crossflow issues with .NET data binding.

I have several Windows Forms controls that are used to interact with my program objects. Currently, they subscribe to the "Updated" event on the site and manually update if necessary. I would like to replace all (or as much as possible) of this template using data binding.

The problem I am facing is that the state of an object can be changed by any of several different threads at any time. I am currently using Invoke () to handle this, which works fine, but when I switch to data binding, I get inundated with illegal control flow control exceptions. Is there a preferred method for handling this elegant use of data binding, or is it better for me to just leave things as they are now?

Thank!

+3
source share
1 answer
+3

Source: https://habr.com/ru/post/1749281/


All Articles