Пример #1
0
 public void AddEvent(DateTime date, string title, string location)
 {
     EventCreator newEvent = new EventCreator(date, title, location);
     this.eventsByTitle.Add(title.ToLower(), newEvent);
     this.eventsByDate.Add(newEvent);
     Messages.EventAdded();
 }
Пример #2
0
 public static void PrintEvent(EventCreator eventToPrint)
 {
     if (eventToPrint != null)
     {
         Output.AppendLine(eventToPrint.ToString());
     }
 }