AddCareMeUser() private method

private AddCareMeUser ( User user ) : void
user User
return void
Exemplo n.º 1
0
        public void AddCareList(EntityInfo info)
        {
            User enter_user = info.CustomData as User;

            if (enter_user == null)
            {
                return;
            }
            IList <EntityInfo> users = new List <EntityInfo>();

            foreach (EntityInfo user_info in users)
            {
                if (user_info.GetId() == info.GetId())
                {
                    continue;
                }
                User user = user_info.CustomData as User;
                if (null == user)
                {
                    continue;
                }
                user.AddCareMeUser(enter_user);
                enter_user.AddCareMeUser(user);
            }
        }