I have created a new EditAppointDialog form, using a custom Appointment Factory. C#
1) How can I set the new custom appointment data during manual creation? I don't see "Email" show as an option. Am I missing something? The email data does save & load within the session.
Appointment appointment = null;
appointment = new Appointment(start, end, summary, description, location);
this.radScheduler.Appointments.Add(appointment);
this.radScheduler.AppointmentFactory = new CustomSchedFactory();
public class CustomSchedFactory : IAppointmentFactory
{
#region IAppointmentFactory Members
public IEvent CreateNewAppointment()
{
return new MySched();
}
#endregion
}
public class MySched : Appointment
{
public MySched()
:base()
{ }
string email = String.Empty;
public string Email
{
get { return this.email; }
set
{
if (this.email != value)
{
this.email=value;
this.OnPropertyChanged("Email");
}
}
}
2) I also will have a new combobox added to the custom AppointmentDialog, and I want to add items at form load (similiar to Resources). How I can I add drop-down values to my custom combobox on the radScheduler during Onload of RadForm (not Appointment form)?
this.radScheduler.Resources.Add(new Resource(1,"Test"));
(I have a new "Types" combobox on the custom EditAppointmentDialog)