示例#1
0
        public CustomerActivityType Find(string CustomerActivityTypeID)
        {
            CustomerActivityType customer = new CustomerActivityType(_userid);
            int i = 0;

            if (_instance == null)
            {
                _instance = new CustomerActivityTypes();
                Load(_userid);
            }
            else
            {
                _instance.ClearItems();
            }
            Load(_userid);
            while (i < _instance.Count)
            {
                if (_instance.Items[i].CustomerActivityTypeID == CustomerActivityTypeID.TrimEnd().TrimStart())
                {
                    customer = _instance.Items[i];
                    break;
                }
                i += 1;
            }



            return(customer);
        }
示例#2
0
 public CustomerActivityTypes List(int UserId)
 {
     _userid = UserId;
     if (_instance == null)
     {
         _instance = new CustomerActivityTypes(_userid);
     }
     Load(_userid);
     return(_instance);
 }