Ejemplo n.º 1
0
        private static void displayEvents()
        {
            Console.WriteLine("Events:");
            if (events == null)
            {
                events = client.GetEvents();
            }
            Dictionary <string, Teacher>       teachersDictionary        = client.GetTeachersIDDictionary();
            Dictionary <string, EventCategory> eventCategoriesDictionary = client.GetEventCategoriesIDDictionary();

            for (int i = 0; i < events.Count; i++)
            {
                string date     = events[i].Date.ToString();
                string id       = events[i].ID.ToString();
                string category = eventCategoriesDictionary[events[i].EventCategoryID].Name;
                Console.WriteLine("{0} - {1}(id: {2})", category, date, id);
            }
        }