private void schedulerControl1_AppointmentDrop(object sender, DevExpress.XtraScheduler.AppointmentDragEventArgs e)
 {
     if (e.HitInterval.Start.TimeOfDay.Hours <= 9)
     {
         this.toolTipController1.ShowHint("Operation is cancelled");
         e.Allow = false;
     }
 }
 private void schedulerControl1_AppointmentDrop(object sender, DevExpress.XtraScheduler.AppointmentDragEventArgs e)
 {
     if (IsIntersectingWithAnotherAppointment(e.EditedAppointment, e.NewAppointmentResourceIds))
     {
         if (MessageBox.Show("Drop Appointment", "test", MessageBoxButtons.YesNo) == DialogResult.No)
         {
             e.Allow = false;
         }
     }
 }
 private void schedulerControl1_AppointmentDrag(object sender, DevExpress.XtraScheduler.AppointmentDragEventArgs e)
 {
     if (e.HitInterval.Start.TimeOfDay.Hours <= 9)
     {
         this.toolTipController1.ShowHint("You cannot move appointment to this area");
         Application.DoEvents();
     }
     else
     {
         this.toolTipController1.HideHint();
     }
 }
        private void schedulerControl1_AppointmentDrag(object sender, DevExpress.XtraScheduler.AppointmentDragEventArgs e) {

            if(resources.Count != 0 || e.SourceAppointment.ResourceIds.Count > 1) {
                if(resources.Count == 0) {
                    for(int i = 0; i < e.SourceAppointment.ResourceIds.Count; i++)
                        resources.Add(Convert.ToInt32(e.SourceAppointment.ResourceIds[i]));
                    resources.Remove(Convert.ToInt32(e.HitResource.Id));
                }
                for(int i = 0; i < resources.Count; i++)
                    e.EditedAppointment.ResourceIds.Add(resources[i]);
            }
        }