ownChat: Neues TimeStamp-Objekt wird unterstützt und der Chat funktioniert wieder.
54 lines
1.3 KiB
C#
54 lines
1.3 KiB
C#
using System.ComponentModel;
|
|
using System.Windows;
|
|
using DevExpress.Xpf.Scheduling.VisualData;
|
|
|
|
namespace BeWo.Scheduling.View
|
|
{
|
|
public partial class AppointmentRecurrenceEditView
|
|
{
|
|
public RecurrenceWindowViewModel ViewModel => DataContext as RecurrenceWindowViewModel;
|
|
|
|
public bool IsCancelled
|
|
{
|
|
get;
|
|
private set;
|
|
}
|
|
|
|
private bool _IsCancelButtonClicked;
|
|
|
|
public AppointmentRecurrenceEditView()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void AppointmentRecurrenceEditView_OnLoaded(object sender, RoutedEventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
private void OkButton_Click(object sender, RoutedEventArgs e)
|
|
{
|
|
IsCancelled = false;
|
|
_IsCancelButtonClicked = false;
|
|
Close();
|
|
}
|
|
|
|
// ToDo: den Ursprungszustand wiederherstellen und schließen
|
|
private void CloseButton_OnClick(object sender, RoutedEventArgs e)
|
|
{
|
|
IsCancelled = true;
|
|
ViewModel.DeleteCommand.Execute(null);
|
|
_IsCancelButtonClicked = false;
|
|
Close();
|
|
}
|
|
|
|
private void AppointmentRecurrenceEditView_OnClosing(object sender, CancelEventArgs e)
|
|
{
|
|
if(_IsCancelButtonClicked)
|
|
{
|
|
IsCancelled = true;
|
|
}
|
|
}
|
|
}
|
|
}
|