Пример #1
0
 public TimeSheet(Guid id, string name, TimePeriod timePeriod) : base(id)
 {
     this.Name   = name;
     this.Period = timePeriod;
     _entries    = new List <Entry>();
     _state      = new TimeSheetState();
 }
Пример #2
0
 public TimeSheet(TimeSheetState state)
     : this(state.Id, state.Name, new TimePeriod(state.TimePeriod_Start, state.TimePeriod_Duration))
 {
     _state = state;
 }