Exemplo n.º 1
0
 /// <summary>
 /// Every n month(s), one selected date
 /// </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="date">Day of the month</param>
 public MonthTE(int monthIntervals, DateTime firstDateTime, int date)
 {
     _monthIntervals    = monthIntervals;
     _firstDateTime     = firstDateTime.Date;
     _date              = date;
     _monthIntervalType = eMonthIntervalType.SelectedDate;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Every n month(s), one selected date
 /// </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="date">Day of the month</param>
 public MonthTE(int monthIntervals, DateTime firstDateTime, int date)
 {
     _monthIntervals = monthIntervals;
     _firstDateTime = firstDateTime.Date;
     _date = date;
     _monthIntervalType = eMonthIntervalType.SelectedDate;
 }
Exemplo n.º 3
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;
 }
Exemplo n.º 4
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;
 }