Hello,
This is my scenario... I have a winForm tabControl that has a variety of fields on each tab (each tab has different fields). When the user clicks the 'Generate' button it is then supposed to pass controls from the tabControl's tab so that the called function can create an e-mail based off of the passed control's information. Each tab is a different e-mail template. The method can be called from 4 different buttons, each button being on a different tabControl page and each tabControl having different fields.
The problem I am having is that I cannot figure out a decent way to call/pass these controls. Since it is not known what tabControl button is being pressed until after runtime I am trying to create an abstract method to accept these controls because each tab has a different set of controls.
Any ideas?