private void ScheduleViewOnAppointmentEditing(object sender, AppointmentEditingEventArgs e) { AppointmentCheck selectedCheck = (AppointmentCheck)e.Appointment; Check check = _checkRepository.GetCheckById(selectedCheck.Id); ViewChecks vc = new ViewChecks(check, _checkRepository); vc.ShowDialog(); if (vc.IsCancelled == false) { LoadChecks(ScheduleView.CurrentDate); HighlightNextAndPreviousMonth(ScheduleView.CurrentDate); SetRangeOfWeeks(); ComputeChecksAmountsPerWeek(); } }
private async void RadScheduleView_OnAppointmentEditing(object sender, AppointmentEditingEventArgs e) { if (e.Appointment is EventAppointment) { var appointment = e.Appointment as EventAppointment; var model = appointment.Event; await _viewModel.LoadLightEventDetails(model); model.RefreshResourceBookingsList(); } if (e.Appointment is CalendarNoteAppointment) { _cancelAppointmentEditing = true; var appointment = e.Appointment as CalendarNoteAppointment; _viewModel.EditCalendarNoteCommand.Execute(appointment.CalendarNote); } }
public void SchedulerClosedDaysEditing(object sender, AppointmentEditingEventArgs e) { if (((AppClosedDay)e.Appointment).IsReadOnly) e.Cancel = true; }
private async void RadScheduleView_OnAppointmentEditing(object sender, AppointmentEditingEventArgs e) { if (e.Appointment is EventAppointment) { var appointment = e.Appointment as EventAppointment; var model = appointment.Event; await _viewModel.LoadLightEventDetails(model); model.RefreshResourceBookingsList(); } if (e.Appointment is CalendarNoteAppointment) { _cancelAppointmentEditing = true; var appointment = e.Appointment as CalendarNoteAppointment; _viewModel.EditCalendarNoteCommand.Execute(appointment.CalendarNote); } }
private void Scheduler_AppointmentEditing(object sender, AppointmentEditingEventArgs e) { e.Cancel = !ProcessAppointments(e.EditAppointments, e.CanceledEditAppointments); }
private void AppointmentEditingCommandExecute(AppointmentEditingEventArgs appointmentEditingEventArgs) { switch (appointmentEditingEventArgs.AppointmentEditAction) { case AppointmentEditAction.Edit: case AppointmentEditAction.EditInline: appointmentEditingEventArgs.Cancel = true; EditOrder(appointmentEditingEventArgs.Appointment); break; } }