コード例 #1
0
        /// <summary>
        /// 基本查找
        /// </summary>
        private void BasicallySearch()
        {
            string nickName = txtNickName.Text.Trim();
            SearchFriendRequestModel requestModel = new SearchFriendRequestModel();

            requestModel.id        = SystemHelper.currentUser.id;
            requestModel.keyWord   = txtNickName.Text.Trim();
            requestModel.pageIndex = PageIndex;
            requestModel.pageSize  = 5;
            SystemHelper.SearchFriends(requestModel, this);
            pnlBaseResult.Location   = pnlBaseCondition.Location;
            pnlBaseResult.Visible    = true;
            grpBaseCondition.Visible = false;
            btn1.Visible             = true;
            btn2.Visible             = true;
            btn3.Visible             = true;   
            btn4.Visible = true;
            btn1.Text = "返回";
            btn2.Text = "上一页";
            btn3.Text = "下一页";
            btn4.Text = "加为好友";
        }
コード例 #2
0
ファイル: SystemHelper.cs プロジェクト: yangfei/myqq-client
 public static void SearchFriends(SearchFriendRequestModel requestModel, SearchFriendForm searchFriendForm)
 {
     SystemHelper.searchFormFriend = searchFriendForm;
     sendMess(MessType.SearchFriend, requestModel);
 }