Example #1
0
 /// <summary>
 /// Called when a shift is removed from one of the week's days.  Reduces the
 /// duration of the week by the duration of the shift.
 /// </summary>
 /// <param name="shift">The removed shift.</param>
 public void ShiftRemoved(Shift shift)
 {
     Duration -= shift.Duration;
 }
Example #2
0
 /// <summary>
 /// Called when a new shift is added to one of the week's days.  Increases the
 /// duraton of the week by the duration of the shift.
 /// </summary>
 /// <param name="shift">The added shift.</param>
 public void ShiftAdded(Shift shift)
 {
     Duration += shift.Duration;
 }