33 lines
814 B
C#
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();
|
||
|
}
|
||
|
}
|
||
|
}
|