示例#1
0
        protected override bool OnVisitYears(YearRangeCollection years, CalendarPeriodCollectorContext context)
        {
            if (IsDebugEnabled)
            {
                log.Debug("Visit Years... years=[{0}]", years);
            }

            if (context.Scope != CalendarPeriodCollectorContext.CollectKind.Year)
            {
                return(true); // continue
            }
            var query = years.GetYears().Where(year => IsMatchingYear(year, context) && CheckLimits(year));

            _periods.AddAll(query.Cast <ITimePeriod>().AsEnumerable());

            return(false); // abort
        }
示例#2
0
        //protected virtual bool EnterMinutes(HourRange hour, TContext context)
        //{
        //    return true;
        //}

        protected virtual bool OnVisitYears(YearRangeCollection years, TContext context)
        {
            return(true);
        }
示例#3
0
 protected virtual bool EnterYears(YearRangeCollection yearRangeCollection, TContext context)
 {
     return(true);
 }
示例#4
0
 protected override bool EnterYears(YearRangeCollection yearRangeCollection, DaySeekerContext context)
 {
     return(!context.IsFinished);
 }
示例#5
0
 protected override bool EnterYears(YearRangeCollection yearRangeCollection, CalendarPeriodCollectorContext context)
 {
     return((int)context.Scope > (int)CalendarPeriodCollectorContext.CollectKind.Year);
 }