private void ViewVCard(XmppVCard vCard) { Dispatcher.BeginInvoke(new Action(() => { string title = vCard.Jid.Bare + " vCard"; string content = UIHelper.XmlIndent("<vCard>" + vCard.ToStream() + "</vCard>"); DialogUtils.ShowIndentedContent(this, content, title); }), DispatcherPriority.Normal); }
/////////////////////////////////////////////////////////////////////////////// public int SendVCardUpdate(XmppVCard vCard) { string content = string.Format("<vCard xmlns=\"vcard-temp\">{0}</vCard>", vCard.ToStream()); return(SendIq(Jid, null, XmppIqType.Set, content)); }