private void ScheduleViewOnAppointmentDeleting(object sender, AppointmentDeletingEventArgs e) { e.Cancel = true; }
public void SchedulerClosedDaysDeleting(object sender, AppointmentDeletingEventArgs e) { if (((AppClosedDay)e.Appointment).IsReadOnly) e.Cancel = true; }
private void AppointmentDeletingCommandExecute(AppointmentDeletingEventArgs appointmentDeletingEventArgs) { appointmentDeletingEventArgs.Cancel = true; RadWindow.Confirm(new DialogParameters { Header = "Удаление заказа.", OkButtonContent = "Да", CancelButtonContent = "Отмена", Content = "Вы уверены что хотите удалить заказ?", Closed = (dialogObj, dialogArgs) => { if (dialogArgs.DialogResult == null || !(bool)dialogArgs.DialogResult) return; DeleteOrder(appointmentDeletingEventArgs.Appointment); } }); }