Ejemplo n.º 1
0
        public bool hasSameIpPeople(IUserModel user, bool isOnChair)
        {
            //test
            //return false;


            if (isOnChair)
            {
                for (int i = 0; i < this._chair.Count; i++)
                {
                    IChairModel chair = this._chair[i];

                    if ("" != chair.getUser().Id)
                    {
                        string[] compare_1 = chair.getUser().getStrIpPort().Split(':');
                        string[] compare_2 = user.getStrIpPort().Split(':');

                        if (compare_1[0] == compare_2[0])
                        {
                            return true;

                        }
                    }

                }//end for
            }

            return false;

        }