private void VcardResult(object sender, IQ iq, object data) { Jid jid = (Jid)data; if (!cm.users.ContainsKey(jid.Bare)) { if (iq.Type == IqType.result) { UserJabber user = new UserJabber(); Vcard vcard = iq.Vcard; if (vcard != null) { user.FullName = vcard.Fullname; user.Nickname = vcard.Nickname; user.Description = vcard.Description; user.jid = jid; cm.users.Add(jid.Bare, user); } } } }
public void OnSelect(object sender, RoutedEventArgs e) { RefreshConversation(); body.IsEnabled = true; body.Text = ""; userSelected = (UserJabber)listBox1.SelectedItem; }