public MyAppointmentEditForm(SchedulerControl control, Appointment appointment) { this.control = control; this.appointment = appointment; this.controller = new MyAppointmentFormController(Control, Appointment); this.recurrenceVisualController = new RecurrenceVisualController(Controller); RecurrenceVisualController.EnableYearlyRecurrence = false; RecurrenceVisualController.EnableWeeklyRecurrence = false; RecurrenceVisualController.EnableNoneRecurrence = false; InitializeComponent(); Loaded += new RoutedEventHandler(OnLoaded); }
public CustomAppointmentForm(SchedulerControl control, Appointment apt, bool readOnly) { Guard.ArgumentNotNull(control, "control"); Guard.ArgumentNotNull(control.Storage, "control.Storage"); Guard.ArgumentNotNull(apt, "apt"); this.controller = CreateController(control, apt); this.control = control; this.storage = control.Storage; this.recurrenceVisualController = new RecurrenceVisualController(Controller); this.readOnly = readOnly; InitializeComponent(); this.cbRecurrence.EditValueChanged += new EditValueChangedEventHandler(OnCbRecurrenceEditValueChanged); }
void OnOKButtonClick(object sender, RoutedEventArgs e) { if (!controller.IsConflictResolved()) { DXMessageBox.Show(SchedulerLocalizer.GetString(SchedulerStringId.Msg_Conflict), "DXScheduler Demo", System.Windows.MessageBoxButton.OK, MessageBoxImage.Exclamation); return; } if (ShouldShowRecurrence) { RecurrenceVisualController.ApplyRecurrence(); } Controller.ApplyChanges(); SchedulerFormBehavior.Close(this, true); }
private void OK_Click(object sender, RoutedEventArgs e) { RecurrenceVisualController.ApplyRecurrence(); CloseForm(true); }