private void onFRReceiveDoneHandler(String senderNeck, String fileName, String savePath) { String str = "从" + senderNeck + "接收文件" + fileName + ":完成"; ExThreadUICtrl.SetText(this, sts_fileReceive, str); Application.DoEvents(); // TODO 有什么作用? }
private void onFRReceivingHandler(String senderNeck, String fileName, String savePath, int bytesReceiveed) { String str = "从" + senderNeck + "接收文件" + fileName + ":" + bytesReceiveed + "..."; ExThreadUICtrl.SetText(this, sts_fileReceive, str); Application.DoEvents(); // TODO 有什么作用? }
private void onFSSendDoneHandler(String receiverNeck, String fileName, String sourcePath) { String str = "向" + receiverNeck + "发送文件" + fileName + ":完成"; ExThreadUICtrl.SetText(this, sts_fileSend, str); Application.DoEvents(); // TODO 有什么作用? }
private void onFSSendingHandler(String receiverNeck, String fileName, String sourcePath, int bytesSended) { String str = "从" + receiverNeck + "发送文件" + fileName + ":" + bytesSended + "..."; ExThreadUICtrl.SetText(this, sts_fileSend, str); Application.DoEvents(); // TODO 有什么作用? }
// 视频/非视频模式切换 public void ToggleVideoMove(bool hasVideo) { if (hasVideo) { ExThreadUICtrl.SetEnabled(this, grb_video, true); ExThreadUICtrl.SetText(this, btn_videoCmd, "结束视频聊天"); } else { ExThreadUICtrl.SetEnabled(this, grb_video, false); ExThreadUICtrl.SetText(this, btn_videoCmd, "请求视频聊天"); } }
private void onKickHandler(String neckname) { String str; if (neckname == ChaitClient.Instance.Neckname) { str = "[系统]你已被踢出聊天室"; } else { str = "[系统]" + neckname + "因违反规则被踢出聊天室"; } ExThreadUICtrl.AddTextRow(this, tb_chatHistory, str); }
private void onJoinHandler(String neckName) { String str; if (neckName == ChaitClient.Instance.Neckname) { str = "[系统]欢迎加入聊天室"; } else { str = "[系统]" + neckName + "加入了聊天室"; Invoke(new delSwitchNameListItem(switchNameListItem), neckName); } ExThreadUICtrl.AddTextRow(this, tb_chatHistory, str); }
// 显示接收到的视频 public void OnFrameReceivedHandler(Bitmap frame) { ExThreadUICtrl.SetPictureBoxImage(this, ptb_otherVideo, frame); }
public void ShowChatMsg(String msg) { ExThreadUICtrl.AddTextRow(this, tb_chatHistory, msg); }
private void onFRErrorHandler(String errorStr) { ExThreadUICtrl.ShowErrorBox(this, "文件接收系统错误"); }
private void onChatErrorHandler(String errorStr) { ExThreadUICtrl.ShowErrorBox(this, "聊天系统错误"); }
private void onQuitGroupHandler(String neckName, String groupName) { String str = "[系统]" + neckName + "离开了群组:" + groupName; ExThreadUICtrl.AddTextRow(this, tb_chatHistory, str); }
private void onLobbyChatHandler(String neckName, String chatStr) { String str = neckName + ":" + chatStr; ExThreadUICtrl.AddTextRow(this, tb_chatHistory, str); }
private void onQuitHandler(String neckName) { String str = "[系统]" + neckName + "离开了聊天室"; ExThreadUICtrl.AddTextRow(this, tb_chatHistory, str); }
public void SwitchMember(String neckname) { ExThreadUICtrl.SwitchListItem(this, lsb_members, neckname); }
public void ShowChatMsg(String msg) { // Invoke(new delUpdateChatContent(updateChatContent), msg); ExThreadUICtrl.AddTextRow(this, tb_groupHistory, msg); }