protected void innerAppointmentDataSource_ObjectCreated(object sender, ObjectDataSourceEventArgs e) { CustomEventDataSource customObjectDataSource = new CustomEventDataSource(CalendarService, CalendarId, timeZoneId); e.ObjectInstance = customObjectDataSource; }
protected void appointmentsDataSource_ObjectCreated(object sender, ObjectDataSourceEventArgs e) { this.objectInstance = new CustomEventDataSource(GetCustomEvents()); e.ObjectInstance = this.objectInstance; }