Exemplo n.º 1
0
 /// <summary>
 /// Helper function for preferred identifier validation
 /// </summary>
 private static void InvalidateForPreferredIdentifier(UniquenessConstraint constraint)
 {
     if (!constraint.IsInternal &&
         !constraint.IsDeleted)
     {
         foreach (PresentationElement pel in PresentationViewsSubject.GetPresentation(constraint))
         {
             ExternalConstraintShape constraintShape = pel as ExternalConstraintShape;
             if (constraintShape != null)
             {
                 constraintShape.Invalidate(true);
             }
         }
     }
 }