Kompetenzen fast fertig
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
using Avalonia.Controls;
|
||||
using Avalonia.Interactivity;
|
||||
using LehrerApp.Desktop.ViewModels.Settings;
|
||||
|
||||
namespace LehrerApp.Desktop.Views.Settings;
|
||||
|
||||
public partial class CompetencyCatalogCopyTargetDialog : Window
|
||||
{
|
||||
public CompetencyCatalogCopyTargetDialog() => InitializeComponent();
|
||||
|
||||
private void OnContinue(object? sender, RoutedEventArgs e)
|
||||
{
|
||||
if (DataContext is CompetencyCatalogCopyTargetViewModel vm && vm.Validate())
|
||||
Close((int?)vm.TargetGradeLevel);
|
||||
}
|
||||
|
||||
private void OnCancel(object? sender, RoutedEventArgs e) => Close(null);
|
||||
}
|
||||
Reference in New Issue
Block a user