Пример #1
0
 private void AddTempbasalToTimeline(IntervalCollection <TempBasal> timeline, TempBasal tempBasal)
 {
     if (tempBasal.Duration == 0)
     {
         timeline.Crop(tempBasal.Time);
     }
     else
     {
         timeline.Add(tempBasal.Time, tempBasal.Time.AddMinutes(tempBasal.Duration), tempBasal);
     }
 }