Example E508
Visible to All Users

WinForms Scheduler - Find free time for a meeting

This example uses the FreeTimeCalculator class to find all available free time intervals within the specified period of time. You can also use this class to find the nearest free time slot with the specified duration.

The FindFreeTimeInterval method raises the IntervalFound event if it finds an interval that does not overlap with existing appointments. The example handles this event to exclude intervals that fall within "restricted" areas, such as non-working hours and holidays.

This example looks for a free time slot with the specified duration within the work time before the end of the current work week.

Note

The example uses SQL Server (XtraScheduling.mdf, XtraScheduling_log.ldf). You should attach databases to the MS SQL server and change the connection string in the app.config file before you start the project.

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.