public void Arrange() { MWarehouse.Arrange(); foreach (ItemAgent ia in itemAgents) { ia.Empty(); } for (int i = 0; i < MWarehouse.Items.Count; i++) { itemAgents[i].SetItem(MWarehouse.Items[i]); } UpdateUI(); }