feat: add student master data import
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
using Avalonia.Controls;
|
||||
using Avalonia.Interactivity;
|
||||
using LehrerApp.Desktop.ViewModels.Students;
|
||||
|
||||
namespace LehrerApp.Desktop.Views.Students;
|
||||
|
||||
public partial class StudentImportDialog : Window
|
||||
{
|
||||
public StudentImportDialog() => InitializeComponent();
|
||||
|
||||
private async void OnApply(object? sender, RoutedEventArgs e)
|
||||
{
|
||||
if (DataContext is StudentImportDialogViewModel vm && await vm.TryApplyAsync())
|
||||
Close(true);
|
||||
}
|
||||
|
||||
private void OnCancel(object? sender, RoutedEventArgs e) => Close(false);
|
||||
}
|
||||
Reference in New Issue
Block a user