Files
Wino-Mail/Wino.Mail.WinUI/Views/Settings/ContactsPage.xaml.cs
T
Burak Kaan Köse 07aeaf8c8f Removal of Bindings
2025-11-16 00:23:23 +01:00

37 lines
1.1 KiB
C#

using Microsoft.UI.Xaml.Controls;
using Wino.Core.Domain.Entities.Shared;
using Wino.Views.Abstract;
namespace Wino.Views.Settings;
public sealed partial class ContactsPage : ContactsPageAbstract
{
public ContactsPage()
{
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);
}
}
}