AddMessage() public method

public AddMessage ( string roomID, LiveCodingChat e ) : void
roomID string
e LiveCodingChat
return void
Esempio n. 1
0
 private void RoomMessage(frmChat frm, string roomID, LiveCodingChat.Xmpp.MessageReceivedEventArgs e)
 {
     if (frm.InvokeRequired)
     {
         frm.Invoke(new MethodInvoker(delegate() { RoomMessage(frm, roomID, e); }));
         return;
     }
     frm.Activate();
     frm.AddMessage(roomID, e);
 }
Esempio n. 2
0
 private void RoomMessage(frmChat frm,LiveCodingChat.Xmpp.MessageReceivedEventArgs e)
 {
     if (frm.InvokeRequired)
     {
         frm.Invoke(new MethodInvoker(delegate() { RoomMessage(frm, e); }));
         return;
     }
     frm.Activate();
     frm.AddMessage(e);
 }