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