public ResultInfo UsersLoginPacket(UserInfo userinfo)
        {
            _client = new CharmEventsService.CharmEventsServiceClient();
            ResultInfo lists = new ResultInfo();

            try
            {
                lists = _client.UsersLoginPacket(userinfo);
                _client.Close();
                return(lists);
            }
            catch (Exception ex)
            {
                _client.CloseCatch(ex, "UsersLoginPacket failed");
                return(lists);
            }
        }
        public List <RankList> GetRankListList(ref DataPage dp)
        {
            _client = new CharmEventsService.CharmEventsServiceClient();
            List <RankList> lists = new List <RankList>();

            try
            {
                lists = _client.GetRankListList(ref dp);
                _client.Close();
                return(lists);
            }
            catch (Exception ex)
            {
                _client.CloseCatch(ex, "GetRankListList failed");
                return(lists);
            }
        }
        public List <ResultInfo> GetUserInfo(UserInfo userinfo)
        {
            _client = new CharmEventsService.CharmEventsServiceClient();
            List <ResultInfo> lists = new List <ResultInfo>();

            try
            {
                lists = _client.GetUserInfo(userinfo);
                _client.Close();
                return(lists);
            }
            catch (Exception ex)
            {
                _client.CloseCatch(ex, "GetUserInfo failed");
                return(lists);
            }
        }