Ejemplo n.º 1
0
 public frmVcard(Jid jid, XmppClientConnection con)
 {
     this.InitializeComponent();
     this._connection = con;
     this.Text = "名片 : " + jid.get_Bare();
     VcardIq iq = new VcardIq(0, new Jid(jid.get_Bare()));
     this.packetId = iq.get_Id();
     con.get_IqGrabber().SendIq(iq, new IqCB(this, (IntPtr) this.VcardResult), null);
 }
Ejemplo n.º 2
0
 public frmGroupChat(XmppClientConnection xmppCon, Jid roomJid, string Nickname)
 {
     this.InitializeComponent();
     this.m_RoomJid = roomJid;
     this.m_XmppCon = xmppCon;
     this.m_Nickname = Nickname;
     Util.GroupChatForms.Add(roomJid.get_Bare().ToLower(), this);
     this.m_XmppCon.get_MesagageGrabber().Add(roomJid, new BareJidComparer(), new MessageCB(this, (IntPtr) this.MessageCallback), null);
     this.m_XmppCon.get_PresenceGrabber().Add(roomJid, new BareJidComparer(), new PresenceCB(this, (IntPtr) this.PresenceCallback), null);
 }