示例#1
0
 public void AddNewActivityEvent(ActivityEvents type, string name)
 {
     ActivityEventEntry newEvent = new ActivityEventEntry();
     newEvent.Event = type;
     newEvent.time = DateTime.Now;
     newEvent.userName = name;
     ActivityEntries.Add(newEvent);
 }
示例#2
0
 public void AddNewActivityEventWithStart(ActivityEvents type, string name, DateTime begin)
 {
     ActivityEventEntry newEvent = new ActivityEventEntry();
     newEvent.Event = type;
     newEvent.time = DateTime.Now;
     newEvent.userName = name;
     newEvent.beginning = begin;
     ActivityEntries.Add(newEvent);
 }