public void SetWarehouseGroup(List <Item> warehouseList) { WarehouseGroup.Clear(); for (int i = 0; i < warehouseList.Count; i++) { WarehouseGroup.Add(warehouseList[i]); } }
public void SetBagGroup(List <Item> bagList) { BagGroup.Clear(); for (int i = 0; i < bagList.Count; i++) { BagGroup.Add(bagList[i]); } }
/// <summary> /// Remove all existing items in the group. /// </summary> private protected void RemoveAll() { foreach (var item in ItemGroup) { item.SelectedChanged -= GroupSelectionHandler; item.ResetItemGroup(); } ItemGroup.Clear(); }