I am looking at ScheduleView to see if it can fit some of my scenarios. And here is some scenarios I stuck with:
1) occur 5 times a day on every 2 days
2) occur every 4 hours a day on every 2 days
Could I know how can I set this recurrence pattern on code behind?
Moreover, I have tried a RecurrencePattern like the following:
pattern = new RecurrencePattern()
{
Frequency = RecurrenceFrequency.Daily,
HoursOfDay = new int[] { 4, 8, 12, 16 },
Interval = 2,
};
and I suppose, on day 1 , the events occur at 4am,8am,12pm and 16 pm. On day 2, no event occur. On day 3 , events occur like on day . On day 4, no event occur. But turn out, events occur on Day 2,Day 4 as well. Am I misunderstanding the parameter "Interval"? How can I set in this case if I want to occur on every 2 day?
1) occur 5 times a day on every 2 days
2) occur every 4 hours a day on every 2 days
Could I know how can I set this recurrence pattern on code behind?
Moreover, I have tried a RecurrencePattern like the following:
pattern = new RecurrencePattern()
{
Frequency = RecurrenceFrequency.Daily,
HoursOfDay = new int[] { 4, 8, 12, 16 },
Interval = 2,
};
and I suppose, on day 1 , the events occur at 4am,8am,12pm and 16 pm. On day 2, no event occur. On day 3 , events occur like on day . On day 4, no event occur. But turn out, events occur on Day 2,Day 4 as well. Am I misunderstanding the parameter "Interval"? How can I set in this case if I want to occur on every 2 day?