Back to Devexpress

SchedulerControl.RemindersFormAction Event

windowsforms-devexpress-dot-xtrascheduler-dot-schedulercontrol-980c2c5f.md

latest3.6 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Win.Scheduler

Declaration

csharp
public event EventHandler<RemindersFormActionEventArgs> RemindersFormAction
vb
Public Event RemindersFormAction As EventHandler(Of RemindersFormActionEventArgs)

Event Data

The RemindersFormAction event's data class is RemindersFormActionEventArgs. The following properties provide information specific to this event:

PropertyDescription
ActionTypeGets the type of the Reminders Form action.
AlertNotificationsGets the list of items displayed in the Reminder Form’s list box.
HandledGets or sets whether the default behavior of the Reminder Form buttons/close form should not be performed.
SelectedAlertNotificationsGets the list of items that are selected in the Reminder Form’s list box.
SnoozeSpanGets 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:

csharp
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;
}
vb
Private Sub schedulerControl1_RemindersFormAction(ByVal sender As Object, ByVal e As DevExpress.XtraScheduler.RemindersFormActionEventArgs)
    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
End Sub

See Also

SchedulerControl Class

SchedulerControl Members

DevExpress.XtraScheduler Namespace