Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
270
How to handle Dismiss and other actions in reminder dialog?
posted

Hi folks!

Is there any way to handle actions inside of Reminder dialog?

I need to implement some operations when people are dismissing appointment/

 

Thanks in advance.

Parents
No Data
Reply
  • 12773
    posted

    Hello,

    In case that you need to handle particular appointment behind dismissed you probably is best to inhered the ReminderDialog. And handle dismiss events acordingly the selected apointment.

    However, you should be able to do it also with current ReminderDialog. You can use this sample in order to
    handle particular Apointment begin displayed:

    vooid CalendarInfo_BeforeDisplayReminderDialog(object sender, Infragistics.Win.UltraWinSchedule.CancelableAppointmentEventArgs e)
            {
                ReminderDialog dialog = new ReminderDialog(sender as UltraCalendarInfo);
               
                dialog.AddAppointmentReminder(e.Appointment);
                if (dialog.ShowDialog() == DialogResult.Cancel)
                {
                        string info = string.Empty;
                        info += "This Reminder was last dismissed " + e.Appointment.Description + e.Appointment.EndDateTime.ToString();
                        MessageBox.Show(info, "AfterDismissDisplayReminderDialog", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                 }
            }


    Note that also “DismissAll “ will be handled in this scenario, you need to aware in case if there is more than one appointment.

    I hope this information was helpful, let me know if you have additional questions.

    Dimi
    Developer Support Engineer

Children