예제 #1
0
 protected override void DoExecute(IMemberElement element)
 {
     if (IsRequired(element))
     {
         element.AddClass(requiredClass);
     }
 }
예제 #2
0
 protected override void DoExecute(IMemberElement element)
 {
     if (IsRequired(element))
     {
         element.AddClass(requiredClass);
     }
 }
예제 #3
0
 protected override void DoExecute(IMemberElement element)
 {
     if (element.ForMember == null)
     {
         return;
     }
     if (!element.IsTextElement())
     {
         return;
     }
     var memberType = element.ForMember.GetPropertyOrFieldType();
     if (memberType.IsNumber())
     {
         element.AddClass(numberClass);
     }
     else if (memberType == typeof(DateTime) || memberType == typeof(DateTime?))
     {
         element.AddClass(dateClass);
     }
 }
예제 #4
0
        protected override void DoExecute(IMemberElement element)
        {
            if (element.ForMember == null)
            {
                return;
            }
            if (!element.IsTextElement())
            {
                return;
            }
            var memberType = element.ForMember.GetPropertyOrFieldType();

            if (memberType.IsNumber())
            {
                element.AddClass(numberClass);
            }
            else if (memberType == typeof(DateTime) || memberType == typeof(DateTime?))
            {
                element.AddClass(dateClass);
            }
        }