SchedulerStorage.RemindersCheckInterval Property
In This Article
Gets or sets the time interval between checks of the reminder alert time (in milliseconds).
Namespace: DevExpress.Xpf.Scheduler
Assembly: DevExpress.Xpf.Scheduler.v14.2.dll
#Declaration
#Property Value
Type | Description |
---|---|
Int32 | An integer value which specifies the time interval between checks of the reminder alert. |
#Remarks
By default, all reminder alerts are checked by the scheduler storage every 15 seconds (15000 milliseconds), but your reminders can be checked more or less frequently. Set the RemindersCheckInterval property to another time interval value.
#Examples
The following example demonstrates how to manually handle reminders and perform a custom action when the SchedulerStorage.ReminderAlert event is fired.
using System;
using System.Windows;
using DevExpress.XtraScheduler;
using DevExpress.Xpf.Scheduler.UI;
// ...
private void button1_Click(object sender, RoutedEventArgs e) {
// Remove all appointments.
schedulerControl1.Storage.AppointmentStorage.Clear();
// Add a new appointment with a reminder.
schedulerControl1.Storage.AppointmentStorage.Add(CreateAppointmentWithReminder());
// Set time interval to check for active reminders to 3 seconds.
schedulerControl1.Storage.RemindersCheckInterval = 3000;
}
private Appointment CreateAppointmentWithReminder() {
// Create a new appointment and set its properties.
Appointment apt = new Appointment(DateTime.Today, TimeSpan.FromHours(1));
apt.Subject = "Test appointment";
apt.HasReminder = true;
return apt;
}
private void SchedulerStorage_ReminderAlert(object sender, ReminderEventArgs e){
// Add your custom action. For example, show the Reminders form.
RemindersForm form = new RemindersForm(schedulerControl1);
form.OnReminderAlert(e.AlertNotifications);
}
See Also