Tätigkeitedit erweitert
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user