请帮助我了解 DevExpress.XtraScheduler 控件发生了什么。
以下是我用来运行重复计划的一些步骤: 1. 设置计划:
Appointment apt;
DateTime StartTime = DateTime.Now;
apt.BeginUpdate();
apt.Subject = "weekly";
apt.Start = startTime;
apt.Duration = TimeSpan.FromMinutes(5);
apt.StatusId = 2;
apt.RecurrenceInfo.AllDay = false;
apt.RecurrenceInfo.Type = RecurrenceType.Weekly;
apt.RecurrenceInfo.Start = startTime;
apt.RecurrenceInfo.Duration = TimeSpan.FromMinutes(5);
apt.RecurrenceInfo.Range = RecurrenceRange.NoEndDate;
apt.RecurrenceInfo.OccurrenceCount = 100;
apt.RecurrenceInfo.DayNumber = 0;
apt.RecurrenceInfo.Periodicity = 1;
apt.RecurrenceInfo.WeekDays = WeekDays.Monday;
apt.HasReminder = true;
apt.Reminder.TimeBeforeStart = TimeSpan.Zero;
apt.EndUpdate();
它在第一周工作正常,但在下周没有触发事件。我不知道为什么会这样?你能给我一些线索,我可以修复它们吗?还是因为我使用的是旧版本(1.1)?
有了上面的设置时间表,是否正确?
请指教。非常感谢。