C1.Win.C1Schedule Help -> conflicts between two appointments

Posted by: andreas.spitzer on 13 December 2017, 1:15 am EST

    • Post Options:
    • Link

    Posted 13 December 2017, 1:15 am EST

    Hello,

    how is it possible that when a second appointment is created for the same time that it comes to a conflict?

    Appointment A:

    Was created for Monday at 10 o’clock in the morning by a person.

    Appointment B:

    Another person creates the same appointment again. I would like to prevent that. Is that possible? I just want an appointment for the time span that has been set.

    I did not find anything in the documentation.

    For a tip, I would be very grateful.

    Thanks! :slight_smile:

  • Posted 13 December 2017, 2:29 am EST

    i have found a solution (forum)! :wink:

    private void myScheduler_BeforeAppointmentSave(object sender, CancelAppointmentEventArgs e)
            {
                Appointment app = e.Appointment;
                AppointmentList conflicts = app.Conflicts;
                if (conflicts.Count > 0)
                {
                    foreach (Appointment conflict in conflicts)
                    {
                        if (conflict.BusyStatus.StatusType == StatusTypeEnum.Busy)
                        {
                            e.Cancel = true;
                            app.CancelEdit();
                            MessageBox.Show("mytext!");
                            myScheduler.RemoveAppointment(app);
                            break;
                        }
                    }
                }
            }
    

    Thanks

  • Posted 13 December 2017, 8:09 am EST

    Hi Andreas,

    Glad to know that you were able to meet your requirement.

    Also, thank you for sharing the solution this might help any customer having same concern.

    ~Ruchir Agarwal

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels