Beispiel #1
0
 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);
 }
Beispiel #2
0
        ///////////////////////////////////////////////////////////////////////////////
        public int SendVCardUpdate(XmppVCard vCard)
        {
            string content = string.Format("<vCard xmlns=\"vcard-temp\">{0}</vCard>", vCard.ToStream());

            return(SendIq(Jid, null, XmppIqType.Set, content));
        }