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);
        }
        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);
 }
예제 #6
0
 void CloseForm(bool dialogResult)
 {
     SchedulerFormBehavior.Close(this, dialogResult);
 }
 private void OnCancelButtonClick(object sender, RoutedEventArgs e)
 {
     SchedulerFormBehavior.Close(this, false);
 }