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();
 }
示例#2
0
 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;
     }
 }
示例#3
0
 void OnEventValuesRequested(object sender, DevExpress.XtraScheduler.GoogleCalendar.ObjectValuesRequestedEventArgs e)
 {
     e.Appointment.LabelKey = e.Event.ColorId ?? this.defaultLabelKey;
 }