Пример #1
0
        private void onKickHandler(String neckname)
        {
            String str;

            if (neckname == ChaitClient.Instance.Neckname)
            {
                str = "[系统]你已被踢出聊天室";
            }
            else
            {
                str = "[系统]" + neckname + "因违反规则被踢出聊天室";
            }
            ExThreadUICtrl.AddTextRow(this, tb_chatHistory, str);
        }
Пример #2
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);
        }
Пример #3
0
 public void ShowChatMsg(String msg)
 {
     ExThreadUICtrl.AddTextRow(this, tb_chatHistory, msg);
 }
Пример #4
0
        private void onQuitGroupHandler(String neckName, String groupName)
        {
            String str = "[系统]" + neckName + "离开了群组:" + groupName;

            ExThreadUICtrl.AddTextRow(this, tb_chatHistory, str);
        }
Пример #5
0
        private void onLobbyChatHandler(String neckName, String chatStr)
        {
            String str = neckName + ":" + chatStr;

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

            ExThreadUICtrl.AddTextRow(this, tb_chatHistory, str);
        }
Пример #7
0
 public void ShowChatMsg(String msg)
 {
     // Invoke(new delUpdateChatContent(updateChatContent), msg);
     ExThreadUICtrl.AddTextRow(this, tb_groupHistory, msg);
 }