Removal of Bindings
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
using CommunityToolkit.WinUI.Controls;
|
||||
using Microsoft.UI.Xaml;
|
||||
using Wino.Mail.ViewModels.Data;
|
||||
using Wino.Views.Abstract;
|
||||
|
||||
|
||||
@@ -9,4 +12,20 @@ public sealed partial class MergedAccountDetailsPage : MergedAccountDetailsPageA
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void UnlinkAccount_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (sender is SettingsCard card && card.CommandParameter is AccountProviderDetailViewModel account)
|
||||
{
|
||||
ViewModel.UnlinkAccountCommand.Execute(account);
|
||||
}
|
||||
}
|
||||
|
||||
private void LinkAccount_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (sender is SettingsCard card && card.CommandParameter is AccountProviderDetailViewModel account)
|
||||
{
|
||||
ViewModel.LinkAccountCommand.Execute(account);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user