Files
LehrerApp/LehrerApp.Desktop/Views/Groups/GroupRolloverDialog.axaml.cs
2026-08-16 00:29:01 +02:00

20 lines
571 B
C#

using Avalonia.Controls;
using Avalonia.Interactivity;
using LehrerApp.Desktop.ViewModels.Groups;
namespace LehrerApp.Desktop.Views.Groups;
public partial class GroupRolloverDialog : Window
{
public GroupRolloverDialog() => InitializeComponent();
private void OnSave(object? sender, RoutedEventArgs e)
{
if (DataContext is not GroupRolloverDialogViewModel vm) return;
vm.SaveCommand.Execute(null);
if (vm.Result is not null) Close(vm.Result.Id);
}
private void OnCancel(object? sender, RoutedEventArgs e) => Close(null);
}