diff --git a/BeWo/BeWoApp.xaml.cs b/BeWo/BeWoApp.xaml.cs index 9979f2844..f96f8762e 100644 --- a/BeWo/BeWoApp.xaml.cs +++ b/BeWo/BeWoApp.xaml.cs @@ -1088,20 +1088,6 @@ namespace BeWo #endif } - public static void LogMessage(string message, DebugWindowMessageColor color) - { -#if DEBUG - if(_DebugMessageLogView == null) - { - _DebugMessageLogView = new DebugMessageLogView(); - } - - _DebugMessageLogView.Closed += (s, e) => { _DebugMessageLogView = null; }; - - _DebugMessageLogView.Show(); - _DebugMessageLogView.LogMessage(message, color); -#endif - } public static void LogMessage(string message, Color customColor) { #if DEBUG diff --git a/BeWo/Scheduler/View/SchedulerAppointmentEditForm.xaml.cs b/BeWo/Scheduler/View/SchedulerAppointmentEditForm.xaml.cs index 9d5a1d2e4..3fe6bc251 100644 --- a/BeWo/Scheduler/View/SchedulerAppointmentEditForm.xaml.cs +++ b/BeWo/Scheduler/View/SchedulerAppointmentEditForm.xaml.cs @@ -646,12 +646,6 @@ namespace BeWo.Scheduler.View } } - private void AllDay_OnCheckedChange(object sender, RoutedEventArgs e) - { - var source = (CheckEdit)e.Source; - var value = source.IsChecked ?? false; - } - private void DueDate_OnEditValueChanged(object sender, EditValueChangedEventArgs e) { if(e.NewValue != null && e.NewValue is DateTime dueDate) @@ -702,18 +696,18 @@ namespace BeWo.Scheduler.View private void EndTimeTextEdit_OnEditValueChanged(object sender, EditValueChangedEventArgs e) { - //if(_HasBeenChangedByStartTime && _PreviousEndDate.HasValue) - // { - // var start = NewSchedulerAppointmentFormController.Start; + //if (_HasBeenChangedByStartTime && _PreviousEndDate.HasValue) + //{ + // var start = NewSchedulerAppointmentFormController.Start; - // if(_PreviousEndDate > start) - // { - // NewSchedulerAppointmentFormController.End = NewSchedulerAppointmentFormController.End.MergeDatesByDate(_PreviousEndDate.Value); - // } - // } + // if (_PreviousEndDate > start) + // { + // NewSchedulerAppointmentFormController.End = NewSchedulerAppointmentFormController.End.MergeDatesByDate(_PreviousEndDate.Value); + // } + //} - // _HasBeenChangedByStartTime = false; - } + _HasBeenChangedByStartTime = false; + } } public class NewSchedulerAppointmentFormController : AppointmentFormController