Exemple #1
0
 public void ApplyHoursToAll(ProjectHourRegistration source)
 {
     foreach (var registration in AllEditableProjectHourRegistrations)
     {
         registration.Hours = source.Hours;
     }
 }
Exemple #2
0
        public void ApplyHoursBackward(ProjectHourRegistration source)
        {
            var toUpdate = AllEditableProjectHourRegistrations.Where(x => x.DateColumn.Date < source.DateColumn.Date);

            foreach (var registration in toUpdate)
            {
                registration.Hours = source.Hours;
            }
        }
 public void AddProjectHours(ProjectHourRegistration projectHourRegistration)
 {
     projectHourRegistration.DateColumn = this;
     _projectHours.Add(projectHourRegistration);
 }
 public virtual void RemoveProjectHourRegistration(ProjectHourRegistration hourRegistration)
 {
     _projectHours.Remove(hourRegistration);
 }