public void AddNewActivityEvent(ActivityEvents type, string name) { ActivityEventEntry newEvent = new ActivityEventEntry(); newEvent.Event = type; newEvent.time = DateTime.Now; newEvent.userName = name; ActivityEntries.Add(newEvent); }
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); }