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