Scheduler control for Windows Forms Create rich Outlook style functionality and add rich scheduling interfaces to C# Windows application KetticScheduler Import Appointments from ICalendar in C#.NET
KetticScheduler control for Windows Forms allows the developers to add the scheduler functionality to their .NET Windows application. This control contains a variety of features, such as multiple view options, strong data binding support, out of box appointment dialogs, as well as iCalendar support. The iCalendar support helps the scheduler interface designers to import Scheduler Appointments from the ICalendar format. In the following C# tutorial, we are going to demonstrate how to achieve this. C# Import Scheduler Appointments from ICalendar
To import the Scheduler Appointments from the ICalendar format, the KetticScheduler C# class contains an Import method for the developers to achieve this. The Import method is able to help you easily import the appointments from a specific SchedulerICalendarImporter instance and a string. The following C# code snippet shows the implementation of Import method. string importString = "ICalendar string format"; this.ketticScheduler1.Import(importString, new SchedulerICalendarImporter());
After importing the Scheduler Appointments from the given SchedulerICalendarImporter instance, we can use an override of the Import method to read appointment data from a stream. The simple C# code below demonstrates how to read the scheduler appointments. using (FileStream stream = File.OpenRead("schedule.ics")) { this.ketticScheduler1.Import(stream, new SchedulerICalendarImporter()); }
|