private void dxGoogleCalendarSync_AppointmentValuesRequested(object sender, DevExpress.XtraScheduler.GoogleCalendar.ObjectValuesRequestedEventArgs e) { //MessageBox.Show("okey===============>" + e.Appointment.CustomFields["AccountId"] + e.Appointment.Description); e.Appointment.CustomFields["AccountId"] = this._account.AccountId; //scheduleTableAdapter.Update(giaDinhUniversityDataSet); //giaDinhUniversityDataSet.AcceptChanges(); }
void OnAppointmentValuesRequested(object sender, DevExpress.XtraScheduler.GoogleCalendar.ObjectValuesRequestedEventArgs e) { if ((string)e.Appointment.LabelKey == this.defaultLabelKey) { e.Event.ColorId = null; } else { e.Event.ColorId = (string)e.Appointment.LabelKey; } }
void OnEventValuesRequested(object sender, DevExpress.XtraScheduler.GoogleCalendar.ObjectValuesRequestedEventArgs e) { e.Appointment.LabelKey = e.Event.ColorId ?? this.defaultLabelKey; }