PDA

View Full Version : Injecting validators (multiple)


jjarrel
07-18-2007, 02:22 AM
I am using a Presenter\Passive view model for my Winforms app. The screens are data input intensive and there are ultimately many validators in use. Its more than one group. The client wants want field by field validation, as well as row validation and the GUI controls even have a spin in that the aren't actually in the bound object until AFTER they have been validated. (I have a technique for this).

I'd like to have a property to inject on the presenter that would go and get the multiple validators. I'd like a dictionary type injection on the presenter property but I don't want to explicitly identify each validator to be loaded.

Any ideas or suggestions?

Thanks,
jeff