void OnChange(object sender, MucAffContact mucAffContact)
 {
     if (mucAffContact != null)
     {
         _affOwner.AffContacts.Remove(mucAffContact);
         _affAdmin.AffContacts.Remove(mucAffContact);
         _affBanned.AffContacts.Remove(mucAffContact);
         _affMembers.AffContacts.Remove(mucAffContact);
     }
 }
 private void _affContacts_OnChange(object sender, MucAffContact mucAffContact)
 {
     if (mucAffContact == null)
     {
         if (App.CheckAccessSafe())
         {
             Refresh();
         }
         else
         {
             if (App.Current != null)
             {
                 App.InvokeSafe(App._dispatcherPriority, new RefreshCallback(Refresh));
             }
         }
     }
 }
        public void Remove(MucAffContact contact)
        {
            lock (_affContacts._syncObject)
            {
                foreach (MucAffContact mucAffContact in _affContacts)
                {
                    if (mucAffContact.Jid == contact.Jid)
                    {
                        _affContacts.Remove(mucAffContact);

                        break;
                    }
                }
            }
        }
 public void RemoveFromGroup(MucAffContact mucAffContact)
 {
     Item item = new Item(Affiliation.none, new Jid(mucAffContact.Jid));
     _manager.ModifyList(_mucRoom.Service.Jid, new Item[] {item},
                         OnRemoveResult, mucAffContact);
 }