Exemple #1
0
        private void schedulerControl1_AllowAppointmentCreate(object sender, AppointmentOperationEventArgs e)
        {
            TimeInterval holidayInterval = new TimeInterval(schedulerControl1.SelectedInterval.Start, schedulerControl1.SelectedInterval.End);

            if (!schedulerControl1.WorkDays.IsWorkDay(holidayInterval.Start))
            {
                e.Allow = false;
            }
        }
Exemple #2
0
        private void schedulerControl1_AllowAppointmentCreate(object sender, AppointmentOperationEventArgs e)
        {
            bool available = ResourcesAvailabilities.IsIntervalAvailableForResource(
                schedulerControl1.SelectedResource.Id.ToString(),
                schedulerControl1.SelectedInterval);

            errorInfo.Content = (available ? null : ResourcesAvailabilities.WarningMessage);

            e.Allow = available;
        }
Exemple #3
0
 private void Schedu_AllowAppointmentDelete(object sender, AppointmentOperationEventArgs e)
 {
     e.Allow = true;
     Changed = true;
 }
Exemple #4
0
 private void Schedu_AllowAppointmentCreate(object sender, AppointmentOperationEventArgs e)
 {
     // e.Allow = false;
     Changed = true;
 }
Exemple #5
0
        private void schedulerControl1_AllowAppointmentCreate(object sender, AppointmentOperationEventArgs e)
        {

            TimeInterval holidayInterval = new TimeInterval(schedulerControl1.SelectedInterval.Start, schedulerControl1.SelectedInterval.End);
            if (!schedulerControl1.WorkDays.IsWorkDay(holidayInterval.Start))
                e.Allow = false;

        }
Exemple #6
0
 private void schedulerControl1_AllowAppointmentCreate(object sender,
                                                       AppointmentOperationEventArgs e)
 {
     e.Allow = IsIntervalAllowed(schedulerControl1.ActiveView.SelectedInterval);
 }
 private void schedulerControl1_AllowAppointmentEdit(object sender, AppointmentOperationEventArgs e)
 {
 }
 public void OnAllowInplaceEditor(object sender, AppointmentOperationEventArgs e)
 {
     e.Allow = true;
 }
 private void Control_AllowAppointmentDrag(object sender, AppointmentOperationEventArgs e)
 {
     e.Allow = false;
 }
Exemple #10
0
 private void schedulerControl_AllowAppointmentCopy(object sender, AppointmentOperationEventArgs e)
 {
     //SchedulerControl1.AllowAppointmentCopy;
     // e.Appointment.CustomFields.Item(0) = Nothing;
     // e.Appointment.CustomFields.Item(1) = Nothing;
 }
Exemple #11
0
 private void schedulerControlPrenotazioni_AllowAppointmentDrag(object sender, AppointmentOperationEventArgs e)
 {
     if (e.Appointment.LabelId == Prenotazione.LabelDisabled)
     {
         e.Allow = false;
     }
 }
 private void Scheduler_OnAllowAppointmentResize(object sender, AppointmentOperationEventArgs e)
 {
     e.Allow = false;
 }
 private void Scheduler_OnAllowInplaceEditor(object sender, AppointmentOperationEventArgs e)
 {
     e.Allow = false;
 }
Exemple #14
0
 protected void ASPxScheduler1_AllowAppointmentDrag(object sender, AppointmentOperationEventArgs e)
 {
     e.Allow = e.Appointment.Start >= DateTime.Today;
 }
Exemple #15
0
 protected void ASPxScheduler1_AllowAppointmentCreate(object sender, AppointmentOperationEventArgs e)
 {
     e.Allow = ASPxScheduler1.SelectedInterval.Start >= DateTime.Today;
 }
Exemple #16
0
 private void schedulerControl1_AllowAppointmentDelete(object sender, AppointmentOperationEventArgs e)
 {
     e.Allow = CanUserModifyThisAppointment(e.Appointment);
 }
Exemple #17
0
 private void schedulerControl1_AllowAppointmentDelete(object sender, AppointmentOperationEventArgs e)
 {
     e.Allow = CanUserModifyThisAppointment(e.Appointment);
 }
 private void schedulerControl_AllowAppointmentDelete(object sender, AppointmentOperationEventArgs e)
 {
 }