예제 #1
0
파일: Program.cs 프로젝트: smghacker/S-M-G
            public void AddEvent(DateTime date, string title, string location)
            {
                Event newEvent = new Event(date, title, location);

                byTitle.Add(title.ToLower(), newEvent);
                byDate.Add(newEvent);

                Messages.EventAdded();
            }
예제 #2
0
파일: Program.cs 프로젝트: smghacker/S-M-G
 public static void PrintEvent(Event eventToPrint)
 {
     if (eventToPrint != null)
     {
         output.Append(eventToPrint + System.Environment.NewLine);
     }
 }