presence/Presence.Desktop/Views/MainWindow.axaml.cs

28 lines
773 B
C#
Raw Normal View History

2024-11-24 18:05:17 +00:00
using Avalonia.Controls;
2024-12-16 04:10:04 +00:00
using Avalonia.Interactivity;
using domain.UseCase;
using Presence.Desktop.ViewModels;
2024-11-24 18:05:17 +00:00
namespace Presence.Desktop.Views
{
public partial class MainWindow : Window
{
2024-12-16 04:10:04 +00:00
public MainWindow(GroupUseCase groupUseCase)
2024-11-24 18:05:17 +00:00
{
InitializeComponent();
2024-12-16 04:10:04 +00:00
DataContext = new MainWindowViewModel(groupUseCase);
}
private void OnDeleteUserClick(object sender, RoutedEventArgs e)
{
var viewModel = (MainWindowViewModel)DataContext;
viewModel.OnDeleteUserClick();
}
private void OnEditUserClick(object sender, RoutedEventArgs e)
{
var viewModel = (MainWindowViewModel)DataContext;
viewModel.OnEditUserClick();
2024-11-24 18:05:17 +00:00
}
}
}