20 lines
592 B
C#
20 lines
592 B
C#
using Avalonia.Controls;
|
|
using Avalonia.Interactivity;
|
|
using LehrerApp.Desktop.ViewModels.Students;
|
|
|
|
namespace LehrerApp.Desktop.Views.Students;
|
|
|
|
public partial class GroupDocumentationQuickDialog : Window
|
|
{
|
|
public GroupDocumentationQuickDialog() => InitializeComponent();
|
|
|
|
private void OnSave(object? sender, RoutedEventArgs e)
|
|
{
|
|
if (DataContext is not GroupDocumentationQuickViewModel vm) return;
|
|
vm.SaveCommand.Execute(null);
|
|
if (vm.Result is not null) Close(true);
|
|
}
|
|
|
|
private void OnCancel(object? sender, RoutedEventArgs e) => Close(false);
|
|
}
|