コード例 #1
0
 /// <summary>
 /// Every n month(s), selected week(s), 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>
 /// <param name="monthlyInterval">Week numbers. E.g., first week, second week, every week, second and third week, etc.</param>
 public MonthTE(int monthIntervals, DateTime firstDateTime, DayOfWeekEnum dayOfWeek, MonthlyIntervalEnum monthlyInterval)
 {
     _monthIntervals    = monthIntervals;
     _firstDateTime     = firstDateTime.Date;
     _dayOfWeek         = TEHelpers.GetDayOfWeekValue(dayOfWeek);
     _monthlyInterval   = TEHelpers.GetMonthlyIntervalValue(monthlyInterval);
     _monthIntervalType = eMonthIntervalType.SelectedWeekSelectedWeekDays;
 }
コード例 #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);
 }