示例#1
0
        private void Memory_OnChatReceived(ChatLogItem item)
        {
            string rtf = BmpChatParser.FormatChat(item);

            ChatLogAll.AppendRtf(rtf);

            Func <bool> cmdFunc = chatListener.GetChatCommand(item);

            if (cmdFunc != null)
            {
                ChatLogCmd.AppendRtf(rtf);
                if (cmdFunc())
                {
                    // successful command?
                }
            }
        }
示例#2
0
        private void Memory_OnChatReceived(ChatLogItem item)
        {
            string rtf = BmpChatParser.FormatChat(item);

            ChatLogAll.AppendRtf(rtf);
        }