コード例 #1
0
ファイル: AddFriendsForm.cs プロジェクト: zwcppa/QQChat
        ImageList faceList;                 //用户头像列表

        public AddFriendsForm(User user)
        {
            InitializeComponent();
            currUser  = user;
            friendBll = new FriendBll();
            groupBll  = new GroupBll();
        }
コード例 #2
0
        private int groupID = 0;    //当前默认组号

        public ChooseGroup(User currUser, User user, IList <Model.Group> groupList)
        {
            InitializeComponent();
            this.currUser       = currUser;
            this.groupList      = groupList;
            this.user           = user;
            this.groupMemberBll = new GroupMemberBll();
            this.groupBll       = new GroupBll();
            this.friendBll      = new FriendBll();
        }
コード例 #3
0
ファイル: FriendListForm.cs プロジェクト: zwcppa/QQChat
        private P2pServerSocket p2pServerSocket; //p2p服务端socket线程


        #endregion

        public FriendListForm()
        {
            InitializeComponent();
            userBll   = new UserBll();
            session   = SessionBll.GetInstance();
            groupBll  = new GroupBll();
            friendBll = new FriendBll();
            user      = session.User;
            string ip = AppUtil.GetLocalIp();

            p2pFormList   = new Dictionary <int, P2pChatForm>();
            p2pSocketList = new Dictionary <int, TcpClient>();

            p2pServerSocket = new P2pServerSocket();
            p2pServerSocket.Start();//开启监听
        }