예제 #1
0
 private bool IsMatchingControl(ValidationFailure failure, BusinessObjectBoundEditableWebControl bocControl)
 {
     if (!bocControl.HasValidBinding)
     {
         return(false);
     }
     //if (failure.GetValidatedInstance != bocControl.DataSource.BusinessObject)
     // return false;
     return(false);
 }
예제 #2
0
 private bool IsMatchingControl(ValidationFailure failure, BusinessObjectBoundEditableWebControl bocControl)
 {
     if (!bocControl.HasValidBinding)
     {
         return(false);
     }
     //if (failure.GetValidatedInstance != bocControl.DataSource.BusinessObject)
     // return false;
     if (failure.PropertyName == bocControl.PropertyIdentifier)
     {
         return(true);
     }
     if (GetShortPropertyName(failure) == bocControl.PropertyIdentifier)
     {
         return(true);
     }
     return(false);
 }