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(); }
public static void PrintEvent(EventCreator eventToPrint) { if (eventToPrint != null) { Output.AppendLine(eventToPrint.ToString()); } }