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