// Token: 0x060073DA RID: 29658 RVA: 0x00212980 File Offset: 0x00210B80 private bool RemoveFromGroupDirectly(CollectionViewGroupInternal group, object item) { int num = group.Remove(item, true); if (num >= 0) { this.OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, item, num)); return(false); } return(true); }
void RemoveEmptyGroup(CollectionViewGroupInternal group) { CollectionViewGroupInternal parent = group.Parent; if (parent != null) { // remove the subgroup unless it is one of the explicit groups if (!group.IsExplicit) { parent.Remove(group, false); } } }
// remove an item from the direct children of a group. // Return true if this couldn't be done. bool RemoveFromGroupDirectly(CollectionViewGroupInternal group, object item) { int leafIndex = group.Remove(item, true); if (leafIndex >= 0) { OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, item, leafIndex)); return(false); } else { return(true); } }
// Token: 0x06008D89 RID: 36233 RVA: 0x002599D8 File Offset: 0x00257BD8 public void Dispose() { if (this._toRemove != null) { foreach (CollectionViewGroupInternal collectionViewGroupInternal in this._toRemove) { CollectionViewGroupInternal parent = collectionViewGroupInternal.Parent; if (parent != null && !collectionViewGroupInternal.IsExplicit) { parent.Remove(collectionViewGroupInternal, false); } } } }
void RemoveEmptyGroup(CollectionViewGroupInternal group) { CollectionViewGroupInternal parent = group.Parent; if (parent != null) { GroupDescription groupBy = parent.GroupBy; int index = parent.ProtectedItems.IndexOf(group); // remove the subgroup unless it is one of the explicit groups if (index >= groupBy.GroupNames.Count) { parent.Remove(group, false); } } }
public void Dispose() { if (_toRemove != null) { foreach (CollectionViewGroupInternal group in _toRemove) { CollectionViewGroupInternal parent = group.Parent; if (parent != null) { // remove the subgroup unless it is one of the explicit groups if (!group.IsExplicit) { parent.Remove(group, false); } } } } }