示例#1
0
 public void AddShiftSegment(ShiftSegment shiftSegment, List <ShiftSegment> currentShiftSegmentList)
 {
     if (currentShiftSegmentList.Any(c => c.Index == shiftSegment.Index))
     {
         throw new ShiftSegmentIndexCanNotBeDuplicateExceptions();
     }
     ShiftSegments.Add(shiftSegment);
 }
示例#2
0
 public void RemoveShiftSegment(ShiftSegment shiftSegment)
 {
     ShiftSegments.Remove(shiftSegment);
 }