private void MessageManager_OnMessage(IcyWind.Chat.Jid.UserJid toJid, IcyWind.Chat.Jid.UserJid fromJid, string msg) { Dispatcher.BeginInvoke(DispatcherPriority.Normal, new Action(() => { MessageBox.Show(msg, fromJid.PlayerJid); })); }
private void IqManager_OnRosterItemRecieved(IcyWind.Chat.Jid.UserJid jid) { Dispatcher.BeginInvoke(DispatcherPriority.Normal, new Action(() => { if (string.IsNullOrWhiteSpace(jid.SumName)) { fakeFriends.Items.Add(jid.RawJid); } else { fakeFriends.Items.Add(jid.SumName); } })); }