Ejemplo n.º 1
0
 /// <summary>
 /// Handles the BeforeAppointmentEdit event of the schedule control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="Infragistics.Win.UltraWinSchedule.BeforeAppointmentEditEventArgs"/> instance containing the event data.</param>
 private void schedule_BeforeAppointmentEdit(object sender, BeforeAppointmentEditEventArgs e)
 {
     // Cancel the event
     e.Cancel = true;
 }
 private void ultraMonthViewSingle1_BeforeAppointmentEdit(
     object sender,
     BeforeAppointmentEditEventArgs e)
 {
     //AddAppointment(e.Appointment);
     //if (e.Appointment.StartDateTime.Date != e.Appointment.EndDateTime.Date)
     //{
     //    // For a multi-day appointment inform the user that they do not have permission to edit the appointment.
     //    // TODO: Set the Cancel property to true to cancel editing of multi-day appointments.
     //    // You will be prompted with the message box which informs you that you cannot edit and cancels the edit.
     //    // You will still be able to resize and move the appointment.
     //    // MessageBox.Show("You do not have the appropriate permissions to edit this Appointment.", "Access Denied", MessageBoxButtons.OK, MessageBoxIcon.Error);
     //    // e.Cancel = true;
     //    // return;
     //}
 }