I work with a little code that is structured this way:
Form A has user controls B and G. User control B has user control D inside it, and user control D has an update method. User control G has user control F inside it, and user control F needs to call the refresh method in D.
1) With the exception of code restructuring (this is legacy code, so it can be disabled from the table as an option), are delegates the best way to solve this problem? If not, do you have another suggestion?
2) I have no experience with delegate functions - is there a good example or example that I could use to adapt to my code to achieve the desired functionality?
c # winforms delegates
Raven dreamer
source share