private static void processBasketSetNode(CBasketSet bset) { bset.ClearItem(); foreach (BasketTypeEnum bt in bset.GetBasketTypes()) { ArrayList arr = bset.GetAllBasketByType(bt); foreach (CBasket bk in arr) { processBasketNode(bk); if (bk.Items.Count > 0) { bset.AddItem(bk); } } } }