16 lines
526 B
C#
16 lines
526 B
C#
using Avalonia.Controls;
|
|
using Avalonia.Interactivity;
|
|
using LehrerApp.Desktop.ViewModels.Groups;
|
|
|
|
namespace LehrerApp.Desktop.Views.Groups;
|
|
|
|
public partial class WebUntisClassSelectionDialog : Window
|
|
{
|
|
public WebUntisClassSelectionDialog() => InitializeComponent();
|
|
private void OnCancel(object? sender, RoutedEventArgs e) => Close(false);
|
|
private void OnConfirm(object? sender, RoutedEventArgs e)
|
|
{
|
|
if (DataContext is WebUntisClassSelectionViewModel { SelectedClass: not null }) Close(true);
|
|
}
|
|
}
|