Beispiel #1
0
        private void onFRReceiveDoneHandler(String senderNeck, String fileName, String savePath)
        {
            String str = "从" + senderNeck + "接收文件" + fileName + ":完成";

            ExThreadUICtrl.SetText(this, sts_fileReceive, str);

            Application.DoEvents(); // TODO 有什么作用?
        }
Beispiel #2
0
        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 有什么作用?
        }
Beispiel #3
0
        private void onFSSendDoneHandler(String receiverNeck, String fileName, String sourcePath)
        {
            String str = "向" + receiverNeck + "发送文件" + fileName + ":完成";

            ExThreadUICtrl.SetText(this, sts_fileSend, str);

            Application.DoEvents(); // TODO 有什么作用?
        }
Beispiel #4
0
        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 有什么作用?
        }
Beispiel #5
0
 // 视频/非视频模式切换
 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, "请求视频聊天");
     }
 }
Beispiel #6
0
        private void onKickHandler(String neckname)
        {
            String str;

            if (neckname == ChaitClient.Instance.Neckname)
            {
                str = "[系统]你已被踢出聊天室";
            }
            else
            {
                str = "[系统]" + neckname + "因违反规则被踢出聊天室";
            }
            ExThreadUICtrl.AddTextRow(this, tb_chatHistory, str);
        }
Beispiel #7
0
        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);
        }
Beispiel #8
0
 // 显示接收到的视频
 public void OnFrameReceivedHandler(Bitmap frame)
 {
     ExThreadUICtrl.SetPictureBoxImage(this, ptb_otherVideo, frame);
 }
Beispiel #9
0
 public void ShowChatMsg(String msg)
 {
     ExThreadUICtrl.AddTextRow(this, tb_chatHistory, msg);
 }
Beispiel #10
0
 private void onFRErrorHandler(String errorStr)
 {
     ExThreadUICtrl.ShowErrorBox(this, "文件接收系统错误");
 }
Beispiel #11
0
 private void onChatErrorHandler(String errorStr)
 {
     ExThreadUICtrl.ShowErrorBox(this, "聊天系统错误");
 }
Beispiel #12
0
        private void onQuitGroupHandler(String neckName, String groupName)
        {
            String str = "[系统]" + neckName + "离开了群组:" + groupName;

            ExThreadUICtrl.AddTextRow(this, tb_chatHistory, str);
        }
Beispiel #13
0
        private void onLobbyChatHandler(String neckName, String chatStr)
        {
            String str = neckName + ":" + chatStr;

            ExThreadUICtrl.AddTextRow(this, tb_chatHistory, str);
        }
Beispiel #14
0
        private void onQuitHandler(String neckName)
        {
            String str = "[系统]" + neckName + "离开了聊天室";

            ExThreadUICtrl.AddTextRow(this, tb_chatHistory, str);
        }
Beispiel #15
0
 public void SwitchMember(String neckname)
 {
     ExThreadUICtrl.SwitchListItem(this, lsb_members, neckname);
 }
Beispiel #16
0
 public void ShowChatMsg(String msg)
 {
     // Invoke(new delUpdateChatContent(updateChatContent), msg);
     ExThreadUICtrl.AddTextRow(this, tb_groupHistory, msg);
 }