19 lines
572 B
C#
19 lines
572 B
C#
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);
|
|
}
|