Beispiel #1
0
        internal FileChangeDay GetDay(DateTime date)
        {
            var firstDay = DaysCollection.FirstOrDefault();

            if (firstDay == null)
            {
                return(null);
            }
            int           idx  = (date - firstDay.DateTime).Days;
            FileChangeDay pDay = (idx >= 0 && idx < DaysCollection.Count) ? DaysCollection[idx] : null;

            return(pDay);
        }
Beispiel #2
0
 private FileChangeDay _getDay(DateTime dateTime)
 {
     return(DaysCollection.FirstOrDefault(pDay => pDay.IsOnDay(dateTime)));
 }