Here is a tough one, probably only answerable by someone who really knows his stuff.
In the WPF program below, I would like to completely eliminate the necessity of the "LoadIt" method. The way I'd like to do it is by saving the address ( or some other appropriate information ) of the method to be called to add a Person or
Pet to the Expander's Tag. Then, when the Add button is clicked, the Expander's Tag is read and the method saved therein is called. The comments in the code below give the gist of what I would like to happen, if such is possible. The actual
application this will be applied to has many groups to add, thereby making the switch statement in the "LoadIt" method huge. That is what I would like to avoid.
Here is the fully functional test program:
View Complete Post