コード例 #1
0
 /// <summary>
 /// Every n month(s), every week, selected week day(s)
 /// </summary>
 /// <param name="monthIntervals">Month interval. E.g., Every 1 month, every 2 months, .... , every n months.</param>
 /// <param name="firstDateTime">Used when monthIntervals > 1 to check a month that comes under expected month interval.</param>
 /// <param name="dayOfWeek">Day(s) of the week</param>
 public MonthTE(int monthIntervals, DateTime firstDateTime, DayOfWeekEnum dayOfWeek)
 {
     _monthIntervals    = monthIntervals;
     _firstDateTime     = firstDateTime.Date;
     _dayOfWeek         = TEHelpers.GetDayOfWeekValue(dayOfWeek);
     _monthIntervalType = eMonthIntervalType.EachWeekSelectedWeekDays;
 }
コード例 #2
0
 public DayInQuarterTE(
     QuarterEnum quarter,
     QuarterlyIntervalEnum quarterInterval,
     MonthlyIntervalEnum monthInterval,
     DayOfWeekEnum dayOfWeek)
 {
     _quarter         = GetQuarterValue(quarter);
     _dayOfWeek       = TEHelpers.GetDayOfWeekValue(dayOfWeek);
     _monthInterval   = TEHelpers.GetMonthlyIntervalValue(monthInterval);
     _quarterInterval = GetQuarterIntervalValue(quarterInterval);
 }