Esempio n. 1
0
 /// <summary>
 /// Method that signalize in the print history for a specific Event to be printed.
 /// </summary>
 /// <param name="eventToPrint">Event to be added in the print history.</param>
 public static void PrintEvent(Event eventToPrint)
 {
     if (eventToPrint != null)
     {
         HistoryOfPerformedActions.Output.Append(eventToPrint + "\n");
     }
 }
 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.byTitle.Add(title.ToLower(), newEvent);
     this.byDate.Add(newEvent);
     Messages.EventAdded();
 }