示例#1
0
        public override bool IsValid(object value)
        {
            ValidationMethods valMethods = new ValidationMethods();
            if (value == null)
            {
                return true;
            }
            string stringICQ = (string)value;

            if (valMethods.IsNumeric(stringICQ) && stringICQ.Length > 6 && stringICQ.Length < 10)
            {
                return true;
            }
            else {
                return false;
            }
        }
示例#2
0
        public override bool IsValid(object value)
        {
            ValidationMethods valMethods = new ValidationMethods();

            if (value == null)
            {
                return(true);
            }
            string stringICQ = (string)value;

            if (valMethods.IsNumeric(stringICQ) && stringICQ.Length > 8 && stringICQ.Length < 16)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }