void SetValues(MonthlySpecificDatePartOne customDatePartOne, MonthlySpecificDatePartTwo customDatePartTwo, int regenEveryXMonths)
 {
     this.regenEveryXMonths = regenEveryXMonths;
     specificDatePartOne    = customDatePartOne;
     specificDatePartTwo    = customDatePartTwo;
     regenType = MonthlyRegenType.OnCustomDateFormat;
 }
 /// <summary>
 /// Get values for a specific day of the month. Eg. Every 23rd day. With option to get every x-month.
 /// </summary>
 /// <param name="dayOfMonthToRegen">Day of month you want to set as the value to get from month to month.</param>
 /// <param name="regenEveryXMonths">How many months to skip, such as 2 for every other month.</param>
 /// <returns></returns>
 public RecurrenceValues GetValues(int dayOfMonthToRegen, int regenEveryXMonths)
 {
     this.regenEveryXMonths           = regenEveryXMonths;
     regenerateOnSpecificDateDayValue = dayOfMonthToRegen;
     regenType = MonthlyRegenType.OnSpecificDayOfMonth;
     return(GetValues());
 }
 /// <summary>
 /// Get Custom dates such as Last Saturday of the month with option as to the increment of every x-months.
 /// </summary>
 /// <param name="customDatePartOne">Corresponds to Part of month such as First, Last.</param>
 /// <param name="customDatePartTwo">Corresponds to day of the week to get such as Tuesday or Weekend Day.</param>
 /// <param name="regenEveryXMonths">How many months to skip, such as 2 for every other month.</param>
 /// <returns></returns>
 public RecurrenceValues GetValues(MonthlySpecificDatePartOne customDatePartOne, MonthlySpecificDatePartTwo customDatePartTwo, int regenEveryXMonths)
 {
     this.regenEveryXMonths = regenEveryXMonths;
     specificDatePartOne    = customDatePartOne;
     specificDatePartTwo    = customDatePartTwo;
     regenType = MonthlyRegenType.OnCustomDateFormat;
     return(GetValues());
 }
 void SetValues(int dayOfMonthToRegen, int regenEveryXMonths)
 {
     this.regenEveryXMonths           = regenEveryXMonths;
     regenerateOnSpecificDateDayValue = dayOfMonthToRegen;
     regenType = MonthlyRegenType.OnSpecificDayOfMonth;
 }
Beispiel #5
0
 internal void SetMonthlyRegenType(MonthlyRegenType monthlyRegenType)
 {
     this.monthlyRegenType = monthlyRegenType;
 }