Esempio n. 1
0
 public static void PrintEvent(Event eventToPrint)
 {
     if (eventToPrint != null)
     {
         Output.Append(eventToPrint + "\n");
     }
 }
Esempio n. 2
0
 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();
 }