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

            productionList.Add(item);
        }