Esempio n. 1
0
        public DateTime getEndTimeWithPause(IPauseTimesRepository pauseTimesRepository, ITimeRepository timeRepository, string comboBoxItems, string comboBoxOperations, string textBoxCount)
        {
            checkingForPause = new CheckingForPause(pauseTimesRepository);
            DateTime time = DateTime.Now;
            DateTime endTimeWithoutPauses = getEndTime(time, timeRepository.GetTime(comboBoxItems, comboBoxOperations), Int32.Parse(textBoxCount), timeRepository.GetSetupTime(comboBoxItems, comboBoxOperations));

            DateTime endTime = endTimeWithoutPauses.Add(checkingForPause.PauseTimes(getStartTimeInPause, time, endTimeWithoutPauses));

            return(endTime);
        }