コード例 #1
0
        public override MessageBlock OnMessage(string room, string message)
        {
            if (!_wHolder.DoesRoomExist(room))
            {
                return(null);
            }

            Chat chat = _wHolder.GetChatForRoom(room);

            chat.SendMessage(message);
            return(message);
        }
コード例 #2
0
        public bool OnMessage(string room, string message)
        {
            if (!_wHolder.DoesRoomExist(room))
            {
                return(false);
            }

            Chat chat = _wHolder.GetChatForRoom(room);

            chat.SendMessage(message);
            _wHolder.GetMainWindow().AddItem(message, _skype.CurrentUser.DisplayName, room);
            return(true);
        }