2024-12-18 07:19:58 +00:00
|
|
|
using Avalonia.Controls;
|
|
|
|
using Avalonia.Interactivity;
|
|
|
|
using Avalonia.Markup.Xaml;
|
|
|
|
using Avalonia.ReactiveUI;
|
|
|
|
using Presence.Desktop.ViewModels;
|
|
|
|
using ReactiveUI;
|
|
|
|
|
2024-12-19 07:27:17 +00:00
|
|
|
|
|
|
|
|
2024-12-18 07:19:58 +00:00
|
|
|
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();
|
|
|
|
}
|
|
|
|
|
2024-12-19 07:27:17 +00:00
|
|
|
|
2024-12-18 07:19:58 +00:00
|
|
|
private void OnEditUserClick(object sender, RoutedEventArgs e)
|
|
|
|
{
|
|
|
|
var viewModel = (GroupViewModel)DataContext;
|
|
|
|
viewModel.OnEditUserClick();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|