Tätigkeitedit erweitert

This commit is contained in:
Husky
2020-04-05 18:58:17 +02:00
parent 495c0309b8
commit 4f6da68fe2
2 changed files with 58 additions and 9 deletions

View File

@@ -2,6 +2,7 @@
using KanSan.ViewModel;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using System.Windows;
using System.Windows.Controls;
@@ -15,6 +16,10 @@ using System.Windows.Shapes;
namespace KanSan.UI
{
public static class CalendarCommands
{
public static RoutedCommand SelectToday = new RoutedCommand("Today", typeof(CalendarCommands));
}
/// <summary>
/// Interaktionslogik für UCTaetigkeitEdit.xaml
/// </summary>
@@ -39,5 +44,22 @@ namespace KanSan.UI
(DataContext as TaetigkeitEditViewModel).Speichern();
OnSpeichernClicked(EventArgs.Empty);
}
private void SelectTodayExecuted(object target, ExecutedRoutedEventArgs e)
{
var calendar = target as Calendar;
if(calendar == null)
{
if (Debugger.IsAttached)
Debugger.Break();
return;
}
Debugger.Break();
}
private void SelectTodayCanExecute(object target, CanExecuteRoutedEventArgs e)
{
e.CanExecute = true;
}
}
}