private void scheduler_EditAppointmentFormShowing(object sender, DevExpress.Xpf.Scheduler.EditAppointmentFormEventArgs e) { SchedulerControl control = sender as SchedulerControl; if (Object.Equals(control, null)) { return; } e.Form = new MyAppointmentEditForm(sender as SchedulerControl, e.Appointment); e.AllowResize = false; }
void employeeScheduler_EditAppointmentFormShowing(object sender, DevExpress.Xpf.Scheduler.EditAppointmentFormEventArgs e) { _currentCorasauBaseEntity = CreateSourceObject(e.Appointment); e.Form = new EmployeeTaskSchedulerDialog(employeeScheduler, e.Appointment); }