private AppointmentEditingEventArgs RaiseAppointmentEditingEvent(IAppointment appointment, AppointmentEditAction action) { var editingEventArgs = new AppointmentEditingEventArgs( RadScheduler.AppointmentEditingEvent, appointment); editingEventArgs.AppointmentEditAction = action; this.itemsControl.RaiseEvent(editingEventArgs); return(editingEventArgs); }
private bool AppointmentEditingIsCancelled() { var editingEventArgs = new AppointmentEditingEventArgs( RadScheduler.AppointmentEditingEvent, this.AppointmentSlot.Occurrence.Appointment); editingEventArgs.AppointmentEditAction = AppointmentEditAction.EditInline; if (this.AppointmentSlot.Occurrence.State == RecurrenceState.Exception) { editingEventArgs.ExceptionAction = ExceptionAction.Edit; editingEventArgs.ExceptionOccurrence = this.AppointmentSlot.Occurrence; } this.RaiseEvent(editingEventArgs); return(editingEventArgs.Cancel); }
/// <summary> /// Raises the <see cref="AppointmentEditing"/> event. /// </summary> /// <param name="args">The <see cref="AppointmentEditingEventArgs"/> instance containing the event data.</param> protected virtual void OnAppointmentEditing(AppointmentEditingEventArgs args) { this.RaiseEvent(args); }