private static DateTime GetNextMonthlyTimeByWeekNrWeekday(DateTime origin)
{
//var startTime = new DateTime(origin.Year, origin.Month, 1, Configuration.MonthlyHour, Configuration.MonthlyMinute, 0);
//var nextTime = GoToDayOfWeek(startTime, Configuration.MonthlyWeekDay);
//nextTime = SkipWeeks(nextTime, Configuration.MonthlyWeek - 1);
//if (nextTime > origin)
// return nextTime;
//startTime = startTime.AddMonths(1);
//nextTime = GoToDayOfWeek(startTime, Configuration.MonthlyWeekDay);
//nextTime = SkipWeeks(nextTime, Configuration.MonthlyWeek - 1);
//return nextTime;
return GoToNthWeekDay(origin, Configuration.MonthlyWeek, Configuration.MonthlyWeekDay, Configuration.MonthlyHour, Configuration.MonthlyMinute);
}
private static DateTime GetNextMonthlyTimeByLastWeekday(DateTime origin)