Пример #1
0
 public static void PrintEvent(EventMain eventToPrint)
 {
     if (eventToPrint != null)
     {
         Output.Append(eventToPrint + "\n");
     }
 }
Пример #2
0
 public void AddEvent(DateTime date, string title, string location)
 {
     EventMain newEvent = new EventMain(date, title, location);
     this.checkByTitle.Add(title.ToLower(), newEvent);
     this.checkByDate.Add(newEvent);
     Messages.EventAdded();
 }