presence/Presence.Desktop/Views/GroupView.axaml.cs
2024-12-19 10:27:17 +03:00

33 lines
814 B
C#

using Avalonia.Controls;
using Avalonia.Interactivity;
using Avalonia.Markup.Xaml;
using Avalonia.ReactiveUI;
using Presence.Desktop.ViewModels;
using ReactiveUI;
namespace Presence.Desktop.Views
{
public partial class GroupView : ReactiveUserControl<GroupViewModel>
{
public GroupView()
{
this.WhenActivated(disposables => { });
AvaloniaXamlLoader.Load(this);
}
private void OnDeleteUserClick(object sender, RoutedEventArgs e)
{
var viewModel = (GroupViewModel)DataContext;
viewModel.OnDeleteUserClick();
}
private void OnEditUserClick(object sender, RoutedEventArgs e)
{
var viewModel = (GroupViewModel)DataContext;
viewModel.OnEditUserClick();
}
}
}