using Avalonia.Controls; using Avalonia.Interactivity; using domain.UseCase; using Presence.Desktop.ViewModels; namespace Presence.Desktop.Views { public partial class MainWindow : Window { public MainWindow(GroupUseCase groupUseCase) { InitializeComponent(); 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(); } } }