示例#1
0
 public void AddEvent(DateTime date, string title, string location)
 {
     var newEvent = new Event(date, title, location);
     this.comparingTitle.Add(title.ToLower(), newEvent);
     this.comparingDate.Add(newEvent);
     Messages.PrintEventAdded();
 }
示例#2
0
 public static void PrintEvent(Event eventToPrint)
 {
     if (eventToPrint != null)
     {
         Output.Append(eventToPrint + "\n");
     }
 }
示例#3
0
文件: Event.cs 项目: ivayloivanof/HQC
 public static void PrintEvent(Event eventToPrint)
 {
     if (eventToPrint != null)
     {
         output.AppendLine(eventToPrint.ToString());
     }
 }
示例#4
0
 public void AddEvent(DateTime date, string title, string location)
 {
     Event newEvent = new Event(date, title, location);
     byTitle.Add(title.ToLower(), newEvent);
     byDate.Add(newEvent);
     Event.EventAdded();
 }
示例#5
0
 public object RangeFrom(Event @event, bool b)
 {
     throw new NotImplementedException();
 }