private void SendMessage(string message) { if (chatRoom != null) { ChatMessage chatMessage = chatRoom.CreateMessage(message); chatRoom.SendMessage(chatMessage, this); } }
private void SendMessage(string message) { if (chatRoom != null) { ChatMessage chatMessage = chatRoom.CreateMessage(message); chatMessage.Listener.OnMsgStateChanged = MessageStateChanged; chatRoom.SendChatMessage(chatMessage); } }
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(); } } }