Ejemplo n.º 1
0
        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;
 }
Ejemplo n.º 3
0
 internal BindControl(SmartViewValidator smart, System.Type clazz)
 {
     this.clazz = clazz;
     this.smart = smart;
 }