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
20
ReminderDialog - list of appointments
posted

Hello,

because I wanted to determine the startup-position and besides display the dialog in ribbon-style, I decided to use my "own" ReminderDialog, like I've seen in this forum.

Everything looks fine, but now for every appointment will be displayed an extra ReminderDialog - the original Dialog displays all appointment within the list.
I tried also:

UltraCalendarInfo info = sender as UltraCalendarInfo
foreach (Appointment app in info.Appointments)
{
    reminder.AddAppointmentReminder(e.Appointment);
}

... but the appointments are not listed!

Is there any possiblity to rebuild this functionality? Thank you very much for help

 

private void ultraCalendarInfo1_BeforeDisplayReminderDialog(object sender, CancelableAppointmentEventArgs e)
        {
            e.Cancel = true;

            UltraCalendarInfo info = sender as UltraCalendarInfo;
            ReminderDialog reminder = new ReminderDialog(info);
            reminder.AddAppointmentReminder(e.Appointment);

            #region ReminderDialog Settings
            reminder.StartPosition = FormStartPosition.CenterParent;

            reminder.Height += 20;
            reminder.MinimumSize = new System.Drawing.Size(reminder.Width, reminder.Height);
            reminder.MaximumSize = new System.Drawing.Size(reminder.Width, reminder.Height);
            foreach (Control control in reminder.Controls)
            {
                control.Location = new System.Drawing.Point(control.Location.X, control.Location.Y + 30);
            }

            UltraToolbarsManager toolbar = new UltraToolbarsManager();
            toolbar.MdiMergeable = false;
            toolbar.UseOsThemes = DefaultableBoolean.False;
            toolbar.DockWithinContainer = reminder;
            toolbar.AutoGenerateKeyTips = false;
            toolbar.Office2007UICompatibility = false;
            toolbar.Ribbon.ApplicationMenu.Visible = false;
            toolbar.Ribbon.Visible = true;
            //toolbar.CreationFilter = new CreationFilter();
            toolbar.Ribbon.ApplicationMenuButtonImage = null;
            #endregion

            DialogResult result = reminder.ShowDialog();
        }

 

Parents
No Data
Reply Children
No Data