protected void BootstrapScheduler1_InitNewAppointment(object sender, DevExpress.XtraScheduler.AppointmentEventArgs e) { DateTime date1 = new DateTime(2020, 06, 04); DateTime date2 = new DateTime(2020, 6, 16); DateTime date3 = new DateTime(2020, 6, 17); DateTime date4 = new DateTime(2020, 6, 24); // if (e.Appointment.Start>date1) e.Appointment.Subject = Session["user_fullname"] + " MDM-Termin"; }
private void scMain_InitNewAppointment(object sender, DevExpress.XtraScheduler.AppointmentEventArgs e) { if (e.Appointment.Start.Hour == 0) { e.Appointment.Start = e.Appointment.Start.AddHours(9); } e.Appointment.Duration = new TimeSpan(3, 0, 0); e.Appointment.StatusId = 0; if (ssMain.Resources.Items.Count > 0) { e.Appointment.ResourceId = ssMain.Resources.Items[0].Id; } }