コード例 #1
0
        public Dictionary <DateTime, List <Models.WashingDayDefinition> > GetFutureDays()
        {
            var c = new FutureDayListController <WashingDayDefinition>();

            foreach (var d in MainSession.WashingDays)
            {
                var scheduleController = new ScheduleController(d.Scheduled);
                c.AddMultiple(d, scheduleController.GetScheduledDays());
            }
            return(c.GetAllDays());
        }
コード例 #2
0
        public Dictionary <DateTime, List <WashingDayInstance> > GetInstancesByDate()
        {
            var c = new FutureDayListController <WashingDayInstance>();

            foreach (var d in MainSession.WashingDays)
            {
                foreach (var i in d.Instances)
                {
                    c.Add(i, i.Day);
                }
            }
            return(c.GetAllDays());
        }