XtraScheduler复杂的复发

时间:2018-01-31 11:38:12

标签: winforms devexpress schedule recurrence

假设我有一个简单的重复事件 **每隔5天凌晨3点做一次**

那将是

Appointment apt = scheduler.Storage.CreateAppointment(AppointmentType.Pattern);
apt.Start = DateTime.Today.AddHours(3);
apt.End = apt.Start.AddMinutes(15);
apt.Subject = "My Subject";
apt.Location = "My Location";
apt.Description = "My Description";
apt.RecurrenceInfo.Type = RecurrenceType.Daily;
apt.RecurrenceInfo.Start = apt.Start;
apt.RecurrenceInfo.Periodicity = 5;
apt.RecurrenceInfo.Range = RecurrenceRange.NoEndDate;

现在,我需要一个复杂的重复事件 **每隔5小时在凌晨3点每6小时做一次** 这甚至可能吗?

1 个答案:

答案 0 :(得分:0)

否,不可能通过单个模式事件来实现。但是您可以通过2个事件来实现。一个-每6小时一次,其他-每5天凌晨3点。

相关问题