SchedulerControl.RemindersFormAction Event
Occurs when a user clicks the Dismiss, Dismiss All, Snooze buttons on the Reminders Form, or closes the form.
Namespace: DevExpress.XtraScheduler
Assembly: DevExpress.XtraScheduler.v24.2.dll
Declaration
Event Data
The RemindersFormAction event's data class is RemindersFormActionEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
ActionType | Gets the type of the Reminders Form action. |
AlertNotifications | Gets the list of items displayed in the Reminder Form’s list box. |
Handled | Gets or sets whether the default behavior of the Reminder Form buttons/close form should not be performed. |
SelectedAlertNotifications | Gets the list of items that are selected in the Reminder Form’s list box. |
SnoozeSpan | Gets the Reminders Form‘s snooze time span. |
Remarks
Handle the RemindersFormAction event to perform a custom action when a user clicks Dismiss, Dismiss All, Snooze buttons on the Reminders Form, or closes the form.
You can use the RemindersFormActionEventArgs.AlertNotifications property to access reminder notifications that are displayed in the Reminders Form.
The following code snippet displays a message box when a user clicks any of the Reminder Form buttons:
private void schedulerControl1_RemindersFormAction(object sender, DevExpress.XtraScheduler.RemindersFormActionEventArgs e) {
MessageBox.Show($"Action {e.ActionType}; number of active reminders: {e.AlertNotifications.Count}; number of selected reminders: {e.SelectedAlertNotifications.Count}; snooze interval: {e.SnoozeSpan}");
e.Handled = checkBox1.Checked;
}