Ejemplo n.º 1
0
        public override void AddPost(DateInterval period, Post post)
        {
            DateInterval i = new DateInterval(period);

            if (!i.Start.HasValue && !i.FindPeriod(TimesCommon.Current.CurrentDate))
            {
                return;
            }

            base.AddPost(i, post);

            // Advance the period's interval until it is at or beyond the current
            // date.
            while (i.Start < TimesCommon.Current.CurrentDate)
            {
                ++i;
            }
        }