Exemplo n.º 1
0
        private void materialValidationProvider_ValidationSucceeded(object sender, DevExpress.XtraEditors.DXErrorProvider.ValidationSucceededEventArgs e)
        {
            bool isValidate = (materialValidationProvider.GetInvalidControls().Count == 0);

            this.saveBtn.Enabled     = isValidate;
            this.validateLbl.Visible = !isValidate;
        }
Exemplo n.º 2
0
        private void confirmValidationProvider_ValidationSucceeded(object sender, DevExpress.XtraEditors.DXErrorProvider.ValidationSucceededEventArgs e)
        {
            bool isValidate = (confirmValidationProvider.GetInvalidControls().Count == 0);

            this.okBtn.Enabled = isValidate;
        }