public Form1() { InitializeComponent(); //Binding with NHibernate.Validator process. //Setting the ErrorProvider to the binder. vvtor = new SmartViewValidator(errorProvider1); //What are the Controls and who are the entity Type to bind to? vvtor.Bind(typeof (Customer)) .With(txtFirstName) .With(txtLastName) .With(txtEmail) .With(txtPhone) .With(txtZip); }
internal BindControl(SmartViewValidator smart, System.Type clazz) { this.clazz = clazz; this.smart = smart; }
internal BindControl(SmartViewValidator smart, System.Type clazz) { this.clazz = clazz; this.smart = smart; }