private void Ok_button_Click(object sender, System.Windows.RoutedEventArgs e) { // Save all changes. Controller.Control.Storage.BeginUpdate(); Controller.ApplyChanges(); Controller.Control.Storage.EndUpdate(); SchedulerFormBehavior.Close(this, true); }
private void Ok_button_Click(object sender, RoutedEventArgs e) { // Save all changes of the editing appointment. Controller.Control.Storage.BeginUpdate(); Controller.ApplyChanges(); Controller.Control.Storage.EndUpdate(); SchedulerFormBehavior.Close(this, true); }
private void OnDeleteButtonClick(object sender, RoutedEventArgs e) { if (IsNewAppointment) { return; } Controller.DeleteAppointment(); SchedulerFormBehavior.Close(this, false); }
private void UserControl_Loaded(object sender, System.Windows.RoutedEventArgs e) { if (Controller.IsNewAppointment) { SchedulerFormBehavior.SetTitle(this, "New appointment"); } else { SchedulerFormBehavior.SetTitle(this, "Edit - [" + Appointment.Subject + "]"); } }
void UpdateContainerCaption(string subject) { if (Controller.IsNewAppointment) { SchedulerFormBehavior.SetTitle(this, "New appointment"); } else { SchedulerFormBehavior.SetTitle(this, "Edit - [" + Appointment.Subject + "]"); } }
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 Cancel_button_Click(object sender, System.Windows.RoutedEventArgs e) { SchedulerFormBehavior.Close(this, false); }
private void UserControl_Loaded(object sender, RoutedEventArgs e) { SchedulerFormBehavior.SetTitle(this, "Recurrence Range"); }
void CloseForm(bool dialogResult) { SchedulerFormBehavior.Close(this, dialogResult); }
void UpdateContainerCaption(string subject) { string str = SchedulerUtils.FormatAppointmentFormCaption(this.Controller.AllDay, this.Controller.Subject, false); SchedulerFormBehavior.SetTitle(this, str); }
private void UserControl_Loaded(object sender, RoutedEventArgs e) { SchedulerFormBehavior.SetTitle(this, "Custom Appointment Form"); }
private void OnCancelButtonClick(object sender, RoutedEventArgs e) { SchedulerFormBehavior.Close(this, false); }
void OnLoaded(object sender, RoutedEventArgs e) { Size currentSize = SchedulerFormBehavior.GetSize(this); SchedulerFormBehavior.SetSize(this, new Size(currentSize.Width + recurrenceGrid.Width, double.NaN)); }