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 }
//protected virtual bool EnterMinutes(HourRange hour, TContext context) //{ // return true; //} protected virtual bool OnVisitYears(YearRangeCollection years, TContext context) { return(true); }
protected virtual bool EnterYears(YearRangeCollection yearRangeCollection, TContext context) { return(true); }
protected override bool EnterYears(YearRangeCollection yearRangeCollection, DaySeekerContext context) { return(!context.IsFinished); }
protected override bool EnterYears(YearRangeCollection yearRangeCollection, CalendarPeriodCollectorContext context) { return((int)context.Scope > (int)CalendarPeriodCollectorContext.CollectKind.Year); }