【文件属性】:
文件名称:北大青鸟myqq项目
文件大小:2.48MB
文件格式:RAR
更新时间:2013-05-09 05:20:32
一期结业项目
北大青鸟一期的结业项目MyQQ项目!namespace MyQQ
{
public partial class frmMain : Form
{
frmChat frm;
private bool _isFlickerMsgTip = true;
private bool _isFlickerText = true;
private string tempText = "";
private Image _picMsgTip;
///
/// 接受消息的進程
///
private Thread _receiveThread = null;
///
/// 接收來發送信息的網絡流
///
private NetworkStream _netStream = null;
///
/// 数据缓冲区大小
///
private int _maxPacket = 2048;
///
/// 临时存储消息队列
///
private List _MsgList;
public frmMain()
{
InitializeComponent();
_picMsgTip = btnToolMessage.Image; //
AppSetter.AllHeaders = imgAllHeaders;
// _FlickerFaces = imgAllHeaders;
}
protected override void OnClosed(EventArgs e)
{
Application.Exit();
}
///
/// 显示我的好友列表信息
///
private void BindMyFriends()
{
sbFriends.Groups[0].Items.Clear();
List _FList = Friends.GetFriends(AppSetter.CurrentUser.Id);
foreach (FriendsInfo obj in _FList)
{
SbItem item = new SbItem(obj.Friend.Id + "(" + obj.Friend.NickName + ")", obj.Friend.FaceId);
item.ContextMenuStrip = cmsPopu;
item.Tag = obj.Friend;
sbFriends.Groups[0].Items.Add(item);
}
}