Example #1
0
        public bool isValid(validoctor.Control.iControl ctl)
        {
            bool returnValue = default(bool);

            if (ctl != null)
            {
                returnValue = (ctl.getValue() != null);
            }
            else
            {
                exceptionFactory.ThrowNullArgumentException("ctl");
            }
            return(returnValue);
        }
Example #2
0
        public bool isValid(validoctor.Control.iControl ctl)
        {
            bool returnValue = default(bool);

            if (ctl != null)
            {
                string value = ctl.getValue().ToString();
                returnValue = value != String.Empty;
            }
            else
            {
                exceptionFactory.ThrowNullArgumentException("ctl");
            }
            return(returnValue);
        }
Example #3
0
        public bool isValid(validoctor.Control.iControl ctl)
        {
            bool returnValue = default(bool);

            if (ctl != null)
            {
                object obj = ctl.getValue();
                if (obj != null)
                {
                    returnValue = !String.IsNullOrEmpty(obj.ToString());
                }
                else
                {
                    returnValue = false;
                }
            }
            else
            {
                exceptionFactory.ThrowNullArgumentException("ctl");
            }
            return(returnValue);
        }