public void SetHours(HoursModes mode, params int[] values) { this.hoursMode = mode; this.hours = new List <int>(); foreach (int tempValue in values) { if (!this.hours.Contains(tempValue)) { this.hours.Add(tempValue); } } }
public CronExpression() { this.minutesMode = MinutesModes.Undefined; this.hoursMode = HoursModes.Undefined; this.daysMode = DaysModes.Undefined; this.monthsMode = MonthsModes.Undefined; this.weekdaysMode = WeekdaysModes.Undefined; this.minutes = null; this.hours = null; this.days = null; this.months = null; this.weekdays = null; }