CalendarImporterBase
Contains base class for ICalendar import functionality.
Definition
Namespace:Telerik.Windows.Controls.ScheduleView.ICalendar
Assembly:Telerik.Windows.Controls.ScheduleView.dll
Syntax:
public abstract class CalendarImporterBase
Inheritance: objectCalendarImporterBase
Derived Classes:
Constructors
Initializes a new instance of the CalendarImporterBase class.
Methods
Writes the additional data for appointment.
protected abstract IAppointment ApplyAdditionalData(IAppointment appointment, CalObject calObject)
The appointment.
calObjectCalObjectThe cal object.
Returns:Sets the appointment data.
protected virtual IAppointment ApplyAppointmentData(IAppointment appointment, CalObject calObject, IDictionary<string, TimeZoneInfo> timeZones)
The appointment.
calObjectCalObjectThe cal object.
timeZonesIDictionary<string, TimeZoneInfo>The time zones.
Returns: Exceptions: CalendarParseExceptionCalendarParseException.
Creates new appointment. It can be overridden with the custom appointment.
protected virtual IAppointment CreateNewAppointment(CalObject vevent)
Gets the parsed appointments from CalObject object.
public virtual IEnumerable<IAppointment> GetAppointments(CalObject calendar)
The calendar object.
Returns:List of parsed appointments.
Exceptions: CalendarParseExceptionCalendarParseException.
Imports the specified text reader.
public IEnumerable<IAppointment> Import(TextReader textReader)
The text reader.
Returns:Collection of parsed IAppointment objects.
Exceptions: CalendarParseExceptionCan not parse CalObject objects.