Пример #1
0
        public ScheduleDay GetNextNotStartedDay()
        {
            ScheduleDay nextDay = null;

            var list = Days.Keys.ToList();

            list.Sort();
            bool found = false;

            for (int i = 0; i < list.Count && !found; i++)
            {
                if (!Days[list[i]].IsStarted())
                {
                    found   = true;
                    nextDay = Days[list[i]];
                }
            }

            return(nextDay);
        }