private void schedule1_AfterAppointmentAdd(object sender, Gravitybox.Objects.EventArgs.AfterBaseObjectEventArgs e) { Gravitybox.Objects.Appointment appt = (Gravitybox.Objects.Appointment)e.BaseObject; if (appt.PropertyItemCollection.Count == 0) { appt.PropertyItemCollection.Add("chris", "", "XXX"); } }
void schedule1_AfterUserAppointmentAdd(object sender, Gravitybox.Objects.EventArgs.AfterBaseObjectEventArgs e) { Appointment appointment = (Appointment)e.BaseObject; System.Diagnostics.Debug.WriteLine(appointment.StartDate); System.Diagnostics.Debug.WriteLine(appointment.StartTime); System.Diagnostics.Debug.WriteLine(appointment.StartDateTime); }
private void Schedule1_AfterAppointmentAdd(object sender, Gravitybox.Objects.EventArgs.AfterBaseObjectEventArgs e) { //Setup the appointment to look nice Gravitybox.Objects.Appointment appointment = (Gravitybox.Objects.Appointment)e.BaseObject; appointment.Appearance.BackColor = Color.White; appointment.Appearance.BackColor2 = Color.LightBlue; appointment.Appearance.BackGradientStyle = Gravitybox.Objects.GradientStyleConstants.ForwardDiagonal; appointment.Appearance.IsRound = true; }
private void Schedule1_AfterAppointmentAdd(object sender, Gravitybox.Objects.EventArgs.AfterBaseObjectEventArgs e) { Gravitybox.Objects.Appointment appointment = (Gravitybox.Objects.Appointment)e.BaseObject; appointment.Appearance.IsRound = true; appointment.Appearance.BackColor = Color.LightBlue; appointment.Appearance.BackColor2 = Color.White; appointment.Appearance.BackGradientStyle = Gravitybox.Objects.GradientStyleConstants.Vertical; appointment.Appearance.Transparency = 40; }