Below I have pasted an approximation of the custom class I am using for the appointments. When I create and edit appointments using this custom class, the AppointmentSaving event is fired twice in succession. When using the default Appointment class, this does not happen. Is there anything in my class that might cause this behaviour, or is it a bug?
using
System;
using
System.Net;
using
System.Windows;
using
System.Windows.Controls;
using
System.Windows.Documents;
using
System.Windows.Ink;
using
System.Windows.Input;
using
System.Windows.Media;
using
System.Windows.Media.Animation;
using
System.Windows.Shapes;
using
Telerik.Windows.Controls.ScheduleView;
namespace
SilverlightApplication1
{
public
class
GLSAppointment : Appointment
{
public
GLSAppointment()
:
base
()
{
MyProperty =
"SomeValue"
;
}
public
string
MyProperty {
get
;
set
; }
public
override
IAppointment Copy()
{
var copy =
new
GLSAppointment();
copy.CopyFrom(
this
);
copy.MyProperty =
this
.MyProperty;
return
copy;
}
public
override
void
CopyFrom(IAppointment other)
{
base
.CopyFrom(other);
MyProperty = (other
as
GLSAppointment).MyProperty;
}
}
}