Suppose I have an Abstract Class C that inherits from Appointment and Classes A and B that inherit from C.
Class C is only inherited from Appointment but has nothing in it.
public abstract class C : Appointment { }
And classes A and B have overrides for Copy and CopyFrom
The AppointmentSource list is actually a C list.
I am currently having a problem with Drop when I drag an object of type A or B on the board and reach the
if (state.Appointment is A)
{
base.Drop(state);
}
I get an Exception.
From what I see it probably comes from CreateNew, CopyFrom, etc.
If C is not abstract, it creates an object of type C, That is C which is neither A nor B
I verify it in AppointmentCreated
I would appreciate help on how to do this correctly