Example #1
0
        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);
        }
Example #2
0
        public void AddProductionItem(ProductionList item)
        {
            if (item == null)
            {
                throw new Exception();
            }
            if (item.Quantity <= 0)
            {
                return;
            }

            productionList.Add(item);
        }