private void VcardResult(object sender, IQ iq, object data) { if (base.InvokeRequired) { base.BeginInvoke(new IqCB(this, (IntPtr) this.VcardResult), new object[] { sender, iq, data }); } else if (iq.get_Type() == 2) { Vcard vcard = iq.get_Vcard(); if (vcard != null) { this.txtFullname.Text = vcard.get_Fullname(); this.txtNickname.Text = vcard.get_Nickname(); this.txtBirthday.Text = vcard.get_Birthday().ToString(); this.txtDescription.Text = vcard.get_Description(); if (vcard.get_Photo() != null) { this.picPhoto.Image = vcard.get_Photo().get_Image(); } } } }