private void DBSettingValidationProvider_ValidationSucceeded(object sender, DevExpress.XtraEditors.DXErrorProvider.ValidationSucceededEventArgs e)
        {
            bool isValidate = (DBSettingValidationProvider.GetInvalidControls().Count == 0);

            this.saveBtn.Enabled     = isValidate;
            this.validateLbl.Visible = !isValidate;
        }
 private bool ControlValidation()
 {
     return(DBSettingValidationProvider.Validate());
 }
 private void refreshSpin_EditValueChanged(object sender, EventArgs e)
 {
     DBSettingValidationProvider.Validate((Control)sender);
 }
 private void dbIndexTBox_TextChanged(object sender, EventArgs e)
 {
     DBSettingValidationProvider.Validate((Control)sender);
 }