Esempio n. 1
0
        private bool IsValid()
        {
            _BrokenRules = new BrokenRuleList();
            bool result = true;

            if (_Address != null && _Address.Trim() == string.Empty)
            {
                result = false;
                _BrokenRules.Rules.Add(new BrokenRule("ENTER STREET ADDRESS"));
            }
            if (_City != null && _City.Trim() == string.Empty)
            {
                result = false;
                _BrokenRules.Rules.Add(new BrokenRule("ENTER CITY"));
            }
            if (_State != null && _State.Trim() == string.Empty)
            {
                result = false;
                _BrokenRules.Rules.Add(new BrokenRule("ENTER STATE"));
            }
            if (_Zipcode != null && _Zipcode.Trim() == string.Empty)
            {
                result = false;
                _BrokenRules.Rules.Add(new BrokenRule("ENTER ZIPCODE"));
            }

            if (_AddressTypeID == Guid.Empty)
            {
                result = false;
                _BrokenRules.Rules.Add(new BrokenRule("SELECT ADDRESS TYPE"));
            }
            return(result);
        }
Esempio n. 2
0
 public Student()
 {
     _Email        = string.Empty;
     _Password     = string.Empty;
     _FirstName    = string.Empty;
     _LastName     = string.Empty;
     _DepartmentId = Guid.Empty;
     _BrokenRules  = new BrokenRuleList();
 }
Esempio n. 3
0
        private bool IsValid()
        {
            _BrokenRules = new BrokenRuleList();
            bool result = true;

            if (_Email != null && _Email.Trim() == string.Empty)
            {
                result = false;
                _BrokenRules.Rules.Add(new BrokenRule("ENTER EMAIL ADDRESS"));
            }

            if (_EmailTypeID == Guid.Empty)
            {
                result = false;
                _BrokenRules.Rules.Add(new BrokenRule("SELECT EMAIL TYPE"));
            }
            return(result);
        }
Esempio n. 4
0
        private bool IsValid()
        {
            _BrokenRules = new BrokenRuleList();
            bool result = true;

            if (_FNAME != null && _FNAME.Trim() == string.Empty)
            {
                result = false;
                _BrokenRules.Rules.Add(new BrokenRule("ENTER FIRST NAME"));
            }

            if (_LNAME != null && _LNAME.Trim() == string.Empty)
            {
                result = false;
                _BrokenRules.Rules.Add(new BrokenRule("ENTER LAST NAME"));
            }
            return(result);
        }
Esempio n. 5
0
        private bool IsValid()
        {
            _BrokenRules = new BrokenRuleList();
            bool result = true;

            if (_Number != null && _Number.Trim() == string.Empty)
            {
                result = false;
                _BrokenRules.Rules.Add(new BrokenRule("ENTER PHONE NUMBER"));
            }

            if (_PhoneTypeID == Guid.Empty)
            {
                result = false;
                _BrokenRules.Rules.Add(new BrokenRule("SELECT PHONE TYPE"));
            }
            return(result);
        }