private void cmdChangeSubject_Click(object sender, EventArgs e)
 {
     Message message = new Message();
     message.set_Type(2);
     message.set_To(this.m_RoomJid);
     message.set_Subject(this.txtSubject.Text);
     this.m_XmppCon.Send(message);
 }
 private void cmdSend_Click(object sender, EventArgs e)
 {
     if (this.rtfSend.Text.Length > 0)
     {
         Message message = new Message();
         message.set_Type(2);
         message.set_To(this.m_RoomJid);
         message.set_Body(this.rtfSend.Text);
         this.m_XmppCon.Send(message);
         this.rtfSend.Text = "";
     }
 }
Exemple #3
0
 private void cmdSend_Click(object sender, EventArgs e)
 {
     Message msg = new Message();
     msg.set_Type(1);
     msg.set_To(this.m_Jid);
     msg.set_Body(this.rtfSend.Text);
     this._connection.Send(msg);
     this.OutgoingMessage(msg);
     this.rtfSend.Text = "";
 }