Hi,
I'm trying to implement group headers and I have a class (TestClass) that implements IAppointment but there seems to be a problem when adding to the Resources property. The Resources.Count is always 0, even after adding to the resources. If I inherit from Appointment it works, but in my case I need to use IAppointment because the class already has another base class. Is there something I'm missing here to get it working?
Thanks!
Some sample code:
public class TestClass : IAppointment
{
//IAppointment implementation...
}
Appointments = new List<TestClass>();
var one = new TestClass
{
Subject = "Appointment 01",
Start = DateTime.Now,
End = DateTime.Now.AddHours(1)
};
one.Resources.Add(new Resource { ResourceName = "Test" }); //Resources.Count remains 0?
Appointments.Add(one);
I'm trying to implement group headers and I have a class (TestClass) that implements IAppointment but there seems to be a problem when adding to the Resources property. The Resources.Count is always 0, even after adding to the resources. If I inherit from Appointment it works, but in my case I need to use IAppointment because the class already has another base class. Is there something I'm missing here to get it working?
Thanks!
Some sample code:
public class TestClass : IAppointment
{
//IAppointment implementation...
}
Appointments = new List<TestClass>();
var one = new TestClass
{
Subject = "Appointment 01",
Start = DateTime.Now,
End = DateTime.Now.AddHours(1)
};
one.Resources.Add(new Resource { ResourceName = "Test" }); //Resources.Count remains 0?
Appointments.Add(one);