void exporter_AppointmentExporting(object sender, AppointmentExportingEventArgs e) { iCalendarAppointmentExportingEventArgs args = e as iCalendarAppointmentExportingEventArgs; //((CustomProperty)args.VEvent.CustomProperties["X-MICROSOFT-CDO-BUSYSTATUS"]).Value = e.Appointment.StatusId.ToString(); ((CustomProperty)args.VEvent.CustomProperties["X-DEVEXPRESS-STATUS"]).Value = e.Appointment.StatusKey.ToString(); }
void exporter_AppointmentExporting(object sender, AppointmentExportingEventArgs e) { string s = Convert.ToString(e.Appointment.CustomFields[RecipientsDataColumn]); string[] attendees = s.Split(';'); iCalendarAppointmentExportingEventArgs args = e as iCalendarAppointmentExportingEventArgs; AddEventAttendees(args.VEvent, attendees); }
void OnExportAppointment(object sender, AppointmentExportingEventArgs e) { iCalendarAppointmentExportingEventArgs args = (iCalendarAppointmentExportingEventArgs)e; Appointment apt = args.Appointment; // TO DO: Check whether the appointment being exported meets conditions. // Export appointments starting in the work time interval only. if (apt.Start.Hour < 8 || apt.Start.Hour > 17) { args.Cancel = true; return; } }