Hello Telerik Team,
I get an error on the following line:
What can this be? The rest of the code:
CustomAppointmentCalendarExporter:
ContactAppoinment:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Telerik.Windows.Controls.Scheduler;
namespace radSchedulerTest
{
class ContactAppointment : AppointmentBase
{
private string contactName;
private string contactEmail;
public string ContactName
{
get
{
return this.contactName;
}
set
{
if (contactName != value)
{
this.contactName = value;
this.OnPropertyChanged("ContactName");
}
}
}
public string ContactEmail
{
get
{
return this.contactEmail;
}
set
{
if (contactEmail != value)
{
this.contactEmail = value;
this.OnPropertyChanged("ContactEmail");
}
}
}
public override IAppointment Copy()
{
IAppointment appointment = new ContactAppointment();
appointment.CopyFrom(this);
return appointment;
}
public override void CopyFrom(IAppointment other)
{
base.CopyFrom(other);
var appointment = other as ContactAppointment;
if (appointment != null)
{
ContactName = appointment.ContactName;
ContactEmail = appointment.ContactEmail;
}
}
}
}
ContactAppointmentCollection:
If you can, can you give me an example code project?
Thanks in advance!
Kind regards,
Maarten