Exemplo n.º 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?
                }
            }
        }
Exemplo n.º 2
0
        private void Memory_OnChatReceived(ChatLogItem item)
        {
            string rtf = BmpChatParser.FormatChat(item);

            ChatLogAll.AppendRtf(rtf);
        }