NoEventsFound() публичный статический Метод

public static NoEventsFound ( ) : void
Результат void
        public void ListEvents(DateTime date, int count)
        {
            int showed = 0;

            OrderedBag <Event> .View eventsToShow = this.compareByDate.RangeFrom(new Event(date, string.Empty, string.Empty), true);

            foreach (var eventToShow in eventsToShow)
            {
                if (showed == count)
                {
                    break;
                }

                Messages.PrintEvent(eventToShow);
                showed++;
            }

            if (showed == 0)
            {
                Messages.NoEventsFound();
            }
        }
Пример #2
0
        public void ListEvents(DateTime date, int count)
        {
            OrderedBag <Event> eventsToShow = byDate.RangeFrom(new Event(date, "", ""), true);

            int showed = 0;

            foreach (var eventToShow in eventsToShow)
            {
                if (showed == count)
                {
                    break;
                }

                Messages.PrintEvent(eventToShow);

                showed++;
            }

            if (showed == 0)
            {
                Messages.NoEventsFound();
            }
        }