void schedulerControl1_RemindersFormShowing(object sender, RemindersFormEventArgs e) { ReminderAlertNotificationCollection alerts = new ReminderAlertNotificationCollection(); foreach (ReminderAlertNotification alert in e.AlertNotifications) { if (alert.ActualAppointment.StatusKey.ToString() == "1") { alerts.Add(alert); } } if (alerts.Count > 0) { RemindersForm remindersForm = new RemindersForm((SchedulerControl)sender); ReminderEventArgs args = new ReminderEventArgs(alerts); remindersForm.FormClosed += new FormClosedEventHandler(remindersForm_FormClosed); remindersForm.OnReminderAlert(args); } e.Handled = true; }
void storage_ReminderAlert(object sender, ReminderEventArgs e) { ReminderAlertNotificationCollection reminders = e.AlertNotifications; ASPxCallback1.JSProperties["cpReminders"] = reminders; }