Files
Wino-Mail/Wino.Mail.WinUI/Views/Settings/ContactsPage.xaml.cs
T

37 lines
1.1 KiB
C#
Raw Normal View History

2025-11-16 00:23:23 +01:00
using Microsoft.UI.Xaml.Controls;
using Wino.Core.Domain.Entities.Shared;
2025-10-29 19:35:04 +01:00
using Wino.Views.Abstract;
namespace Wino.Views.Settings;
public sealed partial class ContactsPage : ContactsPageAbstract
{
public ContactsPage()
{
2025-11-16 00:23:23 +01:00
InitializeComponent();
}
private void EditContact_Click(object sender, Microsoft.UI.Xaml.RoutedEventArgs e)
{
if (sender is Button button && button.CommandParameter is AccountContact contact)
{
ViewModel.EditContactCommand.Execute(contact);
}
}
private void PickContactPhoto_Click(object sender, Microsoft.UI.Xaml.RoutedEventArgs e)
{
if (sender is Button button && button.CommandParameter is AccountContact contact)
{
ViewModel.PickContactPhotoCommand.Execute(contact);
}
}
private void DeleteContact_Click(object sender, Microsoft.UI.Xaml.RoutedEventArgs e)
{
if (sender is Button button && button.CommandParameter is AccountContact contact)
{
ViewModel.DeleteContactCommand.Execute(contact);
}
2025-10-29 19:35:04 +01:00
}
}