private void schedulerControl1_CustomAllowAppointmentCreate(object sender, AppointmentItemOperationEventArgs e)
        {
            //Retrieve the selected interval:
            DateTimeRange selectedIntervalRange = schedulerControl1.SelectedInterval;
            TimeInterval  selectedInterval      = new TimeInterval(selectedIntervalRange.Start, selectedIntervalRange.End);

            //Check whether the selected interval intersects with the resticted interval:
            //If true, restrict appointment creation
            e.Allow = IsIntervalAllowed(selectedInterval);
        }
 private void EmployeeScheduler_CustomAllowAppointmentEdit(object sender, AppointmentItemOperationEventArgs e)
 {
     e.Allow = (bool)e.Appointment.CustomFields["IsBudgetLine"];
 }