/// <summary> /// 移除用户 /// </summary> /// <param name="user">指定要移除的用户</param> public void RemoveUser(User user) { if (yongHuTuiChuEvent != null) yongHuTuiChuEvent(user); userList.Remove(user.guid); user.Close(); //AddItemToListBox(string.Format("当前连接用户数:{0}", userList.Count)); }