Exemplo n.º 1
0
        public void ListEvents(DateTime date, int count)
        {
            bool flag;

            OrderedBag <Event> .View eventsToShow = this.byDate.RangeFrom(new Event(date, "", ""), true);
            int showed = 0;
            IEnumerator <Event> enumerator = eventsToShow.GetEnumerator();

            try
            {
                while (true)
                {
                    flag = enumerator.MoveNext();
                    if (!flag)
                    {
                        break;
                    }
                    Event eventToShow = enumerator.Current;
                    flag = showed != count;
                    if (flag)
                    {
                        Program.Messages.PrintEvent(eventToShow);
                        showed++;
                    }
                    else
                    {
                        break;
                    }
                }
            }
            finally
            {
                flag = enumerator == null;
                if (!flag)
                {
                    enumerator.Dispose();
                }
            }
            flag = showed != 0;
            if (!flag)
            {
                Program.Messages.NoEventsFound();
            }
        }
 public IEnumerator <ITimeLineMoment> GetEnumerator()
 {
     return(_timeLineMoments.GetEnumerator());
 }
Exemplo n.º 3
0
 public IEnumerator <Lap> GetEnumerator()
 {
     return(laps.GetEnumerator());
 }