jamesstill / ScheduleWidget

ScheduleWidget handles recurring events for calendars
MIT License
42 stars 39 forks source link

Every # Weeks #35

Closed tgourley closed 4 years ago

tgourley commented 8 years ago

I am wondering if this more of an "addition" than an issue. I would like to schedule something every # number of weeks. Such as "Every other Friday".

Is this possible? Or would this be something that would have to be added in?

tgourley commented 8 years ago

I found my own answer.

var event = new Event()
                {
                    ID = 1,
                    Title = "Paycheck",
                    FrequencyTypeOptions = FrequencyTypeEnum.Weekly,
                    RepeatInterval = 2,
                    DaysOfWeekOptions = DayOfWeekEnum.Fri,
                    StartDateTime = new DateTime(2016, 4, 22)
                });

The RepeatInterval property can skip any number of FrequencyType. So by setting this to 2, it will then skip every other week.

jamesstill commented 4 years ago

I'm so lame. Just now looking at this issue. :) Thank you for sharing!