Class CalendarImporterBase
Contains base class for ICalendar import functionality.
Inheritance
Namespace: Telerik.Windows.Controls.ScheduleView.ICalendar
Assembly: Telerik.Windows.Controls.ScheduleView.dll
Syntax
public abstract class CalendarImporterBase : Object
Constructors
CalendarImporterBase(Boolean)
Initializes a new instance of the CalendarImporterBase class.
Declaration
protected CalendarImporterBase(bool ignoreParseErrors)
Parameters
System.Boolean
ignoreParseErrors
|
Methods
ApplyAdditionalData(IAppointment, CalObject)
Writes the additional data for appointment.
Declaration
protected abstract IAppointment ApplyAdditionalData(IAppointment appointment, CalObject calObject)
Parameters
IAppointment
appointment
The appointment. |
CalObject
calObject
The cal object. |
Returns
IAppointment
|
ApplyAppointmentData(IAppointment, CalObject, IDictionary<String, TimeZoneInfo>)
Sets the appointment data.
Declaration
protected virtual IAppointment ApplyAppointmentData(IAppointment appointment, CalObject calObject, IDictionary<string, TimeZoneInfo> timeZones)
Parameters
IAppointment
appointment
The appointment. |
CalObject
calObject
The cal object. |
System.Collections.Generic.IDictionary<System.String, System.TimeZoneInfo>
timeZones
The time zones. |
Returns
IAppointment
|
Exceptions
CalendarParseException
|
CreateNewAppointment(CalObject)
Creates new appointment. It can be overridden with the custom appointment.
Declaration
protected virtual IAppointment CreateNewAppointment(CalObject vevent)
Parameters
CalObject
vevent
|
Returns
IAppointment
|
CreateNewResource(CalObject)
Creates new resource. It can be overridden with the custom resource.
Declaration
protected virtual IResource CreateNewResource(CalObject vevent)
Parameters
CalObject
vevent
|
Returns
IResource
|
GetAppointments(CalObject)
Gets the parsed appointments from CalObject object.
Declaration
public virtual IEnumerable<IAppointment> GetAppointments(CalObject calendar)
Parameters
CalObject
calendar
The calendar object. |
Returns
System.Collections.Generic.IEnumerable<IAppointment>
List of parsed appointments. |
Exceptions
CalendarParseException
|
Import(TextReader)
Imports the specified text reader.
Declaration
public IEnumerable<IAppointment> Import(TextReader textReader)
Parameters
System.IO.TextReader
textReader
The text reader. |
Returns
System.Collections.Generic.IEnumerable<IAppointment>
Collection of parsed IAppointment objects. |
Exceptions
CalendarParseException
Can not parse CalObject objects. |