Пример #1
0
 private void ViewXStream(XmppIQ xStream, string title = "")
 {
     Dispatcher.BeginInvoke(new Action(() => {
         string content = UIHelper.XmlIndent(xStream.ToString());
         DialogUtils.ShowIndentedContent(this, content, title);
     }), DispatcherPriority.Normal);
 }
Пример #2
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);
 }