GithubHelp home page GithubHelp logo

devexpress-examples / how-to-adjust-the-appointment-conflicts Goto Github PK

View Code? Open in Web Editor NEW
0.0 54.0 1.0 42 KB

Resolve appointment conflicts in the WinForms Scheduler control.

License: Other

C# 44.80% Visual Basic .NET 55.20%
dotnet scheduler user-experience windows-forms winforms xtrascheduler appointment-conflict resolve-conflict

how-to-adjust-the-appointment-conflicts's Introduction

WinForms Scheduler - Resolve appointment conflicts

This example handles the SchedulerControl.AllowAppointmentConflicts event to prevent appointments from crossing (when the user moves an appointment within the Scheduler). The SchedulerOptionsCustomization.AllowAppointmentConflicts property is set to AppointmentConflictsMode.Custom to handle appointment conflicts manually.

The code in the AllowAppointmentConflicts event handler checks whether the time interval of the modified appointment intersects with other appointments, including recurrent series and exceptions. If such an appointment is found, the appointment is added to the e.Conflicts collection. If the collection has at least one element, a conflict occurs and the Scheduler control cancels changes.

The example also handles the CustomDrawAppointmentBackground event to highlight conflicts. The AppointmentConflictsCalculator.CalculateConflicts method is used to obtain appointment conflicts.

how-to-adjust-the-appointment-conflicts's People

Contributors

alexey-zolotarev avatar iam0k avatar nadezhdadx avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

nadezhdadx

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.