コード例 #1
0
        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();
            }
        }
コード例 #2
0
        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);
            }
        }
コード例 #3
0
 public void SchedulerClosedDaysEditing(object sender, AppointmentEditingEventArgs e)
 {
     if (((AppClosedDay)e.Appointment).IsReadOnly)
         e.Cancel = true;
 }
コード例 #4
0
ファイル: EventsView.xaml.cs プロジェクト: syatin003/Wpf
        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);
 }
コード例 #6
0
 private void AppointmentEditingCommandExecute(AppointmentEditingEventArgs appointmentEditingEventArgs)
 {
     switch (appointmentEditingEventArgs.AppointmentEditAction)
     {
         case AppointmentEditAction.Edit:
         case AppointmentEditAction.EditInline:
             appointmentEditingEventArgs.Cancel = true;
             EditOrder(appointmentEditingEventArgs.Appointment);
             break;
     }
 }