private void ultraWeekView1_AppointmentsDragging(
            object sender,
            AppointmentsDraggingEventArgs e)
        {
            var control = sender as ControlWithActivityBase;
            //Get WinSchedule control name
            Console.WriteLine(control.Name);
            // Write whether the drag operation is in beginning, progress or ending phase to the output window.
            Console.WriteLine(e.Phase.ToString());
            Console.WriteLine(e.InitialOwner.ToString());

            //Date Time of the appointment
            Console.WriteLine(e.InitialDateTime.ToString());

            //New Date Time to which the appointment has moved
            Console.WriteLine(e.NewDateTime.ToString());

            //Prevent dragging appointment from one Owner to another
            e.AllowOwnerChange = false;
        }
 /// <summary>
 /// Handles the AppointmentsDragging event of the mvMonthly control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="AppointmentsDraggingEventArgs"/> instance containing the event data.</param>
 private void mvMonthly_AppointmentsDragging(object sender, AppointmentsDraggingEventArgs e)
 {
     e.Cancel = true;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Handles the AppointmentsDragging event of the schedule control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="Infragistics.Win.UltraWinSchedule.AppointmentsDraggingEventArgs"/> instance containing the event data.</param>
 private void schedule_AppointmentsDragging(object sender, AppointmentsDraggingEventArgs e)
 {
     // Cancel the event
     e.Cancel = true;
 }