Exemple #1
0
 public void Add(double time, ScheduleKind scheduleKind)
 {
     _eventCalendar.Add(time, scheduleKind);
 }
Exemple #2
0
        public KeyValuePair <double, ScheduleKind> GetNext(double time, ScheduleKind scheduleKind)
        {
            var next = _eventCalendar.FirstOrDefault(ec => ec.Key > time && ec.Value == scheduleKind);

            return(next);
        }