In C #: I have a data class that is shared between several gui classes. I would like all the gui classes that used it to be notified when some properties change so that they can update the GUI.
In several properties, I have added delegates that GUI classes can listen for updates. This seems to be normal.
The problem I have is that more and more properties will require GUI notification. When this happens, I will have to add more delegates. It also seems to add extra responsibility for the data class that it should manage.
Is there some general pattern that I can use to monitor this class to extract this notification responsibility from the data class?
Mattr source share