Exemplo n.º 1
0
        public override RecurrencePattern ConvertToRecurrencePattern()
        {
            RecurrencePattern pattern = new RecurrencePattern();

            pattern.Frequency      = RecurrenceFrequency.Yearly;
            pattern.DayOrdinal     = DayOfWeekIndexConverter.ConvertToDayOrdinal(DayOfWeekIndex);
            pattern.DaysOfWeekMask = DaysOfWeekStringConverter.ConvertToRecurrenceDay(DaysOfWeek);
            pattern.Month          = (RecurrenceMonth)Enum.Parse(typeof(RecurrenceMonth), Month.ToString());
            return(pattern);
        }
Exemplo n.º 2
0
        public override RecurrencePattern ConvertToRecurrencePattern()
        {
            RecurrencePattern pattern = new RecurrencePattern();

            pattern.Frequency      = RecurrenceFrequency.Monthly;
            pattern.DayOrdinal     = DayOfWeekIndexConverter.ConvertToDayOrdinal(DayOfWeekIndex);
            pattern.DaysOfWeekMask = DayOfWeekConverter.ConvertToRecurrenceDay(DaysOfWeek);
            pattern.Interval       = Interval;
            return(pattern);
        }