Beispiel #1
0
        private NRecurrenceYearlyRule CreateAbsoluteYearlyRule()
        {
            // Create a rule, which occurs on every May 7 and July 7, every year
            NRecurrenceYearlyRule rule = new NRecurrenceYearlyRule(7, ENMonth.May | ENMonth.July);

            rule.StartDate = RuleStart;
            return(rule);
        }
Beispiel #2
0
        private NRecurrenceYearlyRule CreateRelativeYearlyRule()
        {
            // Create a rule, which occurs on the first Monday and Tuesday of May, June and August
            NRecurrenceYearlyRule rule = new NRecurrenceYearlyRule(
                ENDayOrdinal.First,
                ENDayOfWeek.Monday | ENDayOfWeek.Tuesday,
                ENMonth.May | ENMonth.June | ENMonth.August);

            rule.StartDate = RuleStart;
            return(rule);
        }