internal void AddInSubtree (object item, CultureInfo culture, IList<GroupDescription> descriptions, bool allowSorting, object name)
{
bool added = false;
foreach (StandardCollectionViewGroup group in Items) {
var desc = descriptions [Depth];
if (desc.NamesMatch (group.Name, name)) {
group.AddInSubtree (item, culture, descriptions, allowSorting);
added = true;
}
}
if (!added) {
int depth = Depth + 1;
var group = new StandardCollectionViewGroup (this, name, depth, depth == descriptions.Count, Sorters);
AddItem (group, allowSorting);
group.AddInSubtree (item, culture, descriptions, allowSorting);
}
}