I have the following problem.
I've got a dictionary, where the keys corresponds to labels in my UI, and the values correspond to the value I must set in each control associated with that label.
The problem is that I don't know at compile time what type will the component have (it can be a textbox, combo, list, etc)
Each component shares the parent with the label, so that's the way I'm locating it.
But after that, I want to be able to create adapters (or elements) for each component, and be able, at runtime, to determine the type and using that, change the value in the appropriate way.
Is there any method that given an adapter or element can determine its type, or its capabilities??