private void schedulerControl1_EditAppointmentFormShowing(object sender, DevExpress.XtraScheduler.AppointmentFormEventArgs e) { DevExpress.XtraScheduler.Appointment apt = e.Appointment; // Required to open the recurrence form via context menu. bool isNewAppointment = schedulerStorage1.Appointments.IsNewAppointment(apt); // Create a custom form. BookingForm myForm = new BookingForm((SchedulerControl)sender, apt, isNewAppointment); try { // Required for skins support. myForm.LookAndFeel.ParentLookAndFeel = schedulerControl1.LookAndFeel; //e.DialogResult = myForm.ShowDialog(); myForm.ShowDialog(); schedulerControl1.RefreshData(); e.Handled = true; } finally { myForm.Dispose(); MemoryHelper.ReduceMemory(); } }
private void bbiBookingControl_ItemClick(object sender, ItemClickEventArgs e) { BookingForm frm = new BookingForm(); frm.ShowDialog(); }