Exemplo n.º 1
0
        private BatchRepo GetChosenBatch(int batchNr, int dayNr)
        {
            BatchRepo chosen = new BatchRepo();

            for (int i = 0; i < batchRepo.Count; i++)
            {
                if (batchRepo.GetBatchNrByIndex(i).Equals(batchNr))
                {
                    chosen.AddItem(batchRepo.GetItem(i));
                    chosen.DeleteAllDaysButChosen(batchNr, dayNr);
                }
            }
            return(chosen);
        }