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