예제 #1
0
 private void SendMessage(string message)
 {
     if (chatRoom != null)
     {
         ChatMessage chatMessage = chatRoom.CreateMessage(message);
         chatRoom.SendMessage(chatMessage, this);
     }
 }
예제 #2
0
 private void SendMessage(string message)
 {
     if (chatRoom != null)
     {
         ChatMessage chatMessage = chatRoom.CreateMessage(message);
         chatMessage.Listener.OnMsgStateChanged = MessageStateChanged;
         chatRoom.SendChatMessage(chatMessage);
     }
 }
예제 #3
0
        public void OnMessageClicked(object sender, EventArgs e)
        {
            ProxyConfig proxyConfig = Core.DefaultProxyConfig;

            if (proxyConfig != null)
            {
                Address remoteAddr = Core.InterpretUrl(address.Text);
                if (remoteAddr != null)
                {
                    ChatRoom room = Core.GetChatRoom(remoteAddr, proxyConfig.IdentityAddress);

                    ChatMessage message = room.CreateMessage(chatMessage.Text);
                    message.Listener.OnMsgStateChanged = OnMessageStateChanged;

                    message.Send();
                }
            }
        }