public static void PrintEvent(Event eventToPrint) { if (eventToPrint != null) { EventApplication.Output.Append(eventToPrint + "\n"); } }
public void AddEvent(DateTime date, string title, string location) { Event newEvent = new Event(date, title, location); var lowerTitle = title.ToLower(); this.byTitle.Add(lowerTitle, newEvent); this.byDate.Add(newEvent); Messages.EventAdded(); }