public void MoveProductionItemToSpecialIndex(int newIndex, int oldIndex) { var item = new ProductionList(productionList[oldIndex].Article, productionList[oldIndex].Quantity); productionList[oldIndex] = null; productionList.Insert(newIndex, item); productionList.RemoveAll(x => x == null); }
public void AddProductionItem(ProductionList item) { if (item == null) { throw new Exception(); } if (item.Quantity <= 0) { return; } productionList.Add(item); }