public static ExDateTime[] GetEffectiveDates(CalendarAdapterBase calendarAdapter, ISessionContext sessionContext, bool workingDayOnly)
        {
            List <ExDateTime> list = new List <ExDateTime>();
            bool flag        = false;
            int  workingDays = PrintMonthlyView.GetWorkingDays(calendarAdapter, sessionContext);

            for (int i = 0; i < calendarAdapter.DateRanges.Length; i++)
            {
                ExDateTime start = calendarAdapter.DateRanges[i].Start;
                if (start.Day == 1)
                {
                    if (flag)
                    {
                        break;
                    }
                    flag = true;
                }
                if (flag && PrintMonthlyView.ShouldRenderDay(start, workingDays, workingDayOnly))
                {
                    list.Add(start);
                }
            }
            return(list.ToArray());
        }
 private bool ShouldRenderDay(ExDateTime day)
 {
     return(PrintMonthlyView.ShouldRenderDay(day, this.workDays, this.workingDayOnly));
 }