Пример #1
0
 public static void PrintEvent(Event eventToPrint)
 {
     if (eventToPrint != null)
     {
         Output.Append(eventToPrint + "\n");
     }
 }
            public void AddEvent(DateTime date, string title, string location)
            {
                var newEvent = new Event(date, title, location);

                byTitle.Add(title.ToLower(), newEvent);
                byDate.Add(newEvent);

                Messages.EventAdded();
            }