public ProjectChangeEvent(ProjectChangeEvent pce) : this(pce.Type, pce.NewProject, pce.NewComment, new List <WorktimeRecord>(), pce.Processed, pce.AvailableWorktimebreak) { foreach (var wtr in pce.WorktimeRecords) { WorktimeRecords.Add(new WorktimeRecord(wtr)); } }
public ProjectChangeEvent(Types type, string newProject, string newComment, WorktimeRecord wtr, Boolean processed = false, TimeSpan availableWorktimebreak = new TimeSpan()) : this(type, newProject, newComment, new List <WorktimeRecord>(), processed, availableWorktimebreak) { WorktimeRecords.Add(wtr); }