Пример #1
0
        /// <summary>
        /// If a timer is paused, when days are incremented, the timer's alarm date should also be incremented to reflect the pause
        /// </summary>
        /// <param name="currentCalendar"></param>
        public void AdjustForPause(CalendarType currentCalendar)
        {
            if (pausedTime == 0)
            {
                return;
            }
            else
            {
                string newDate;
                newDate = currentCalendar.dateIn(pausedTime);

                month = Int32.Parse(newDate.Substring(0, 2));
                day   = Int32.Parse(newDate.Substring(2, 2));
                year  = Int32.Parse(newDate.Substring(4, 4));
            }
        }