private void onFRReceiveDoneHandler(String senderNeck, String fileName, String savePath) { String str = "从" + senderNeck + "接收文件" + fileName + ":完成"; 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 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 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, "请求视频聊天"); } }