Exemplo n.º 1
0
 internal void Add(ActivityItem fci)
 {
     if (fci != null)
     {
         // to straight listing
         Collection.Add(fci);
         fci.Project = this;
         // to day schedule listing
         FileChangeDay projectDay = _getDay(fci.DateTime);
         projectDay?.Add(fci);
     }
 }
Exemplo n.º 2
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);
        }