2024-07-21 05:45:02 +02:00
|
|
|
|
using Wino.Domain.Entities;
|
|
|
|
|
|
|
2024-07-20 03:07:21 +02:00
|
|
|
|
|
|
|
|
|
|
#if NET8_0
|
|
|
|
|
|
using Microsoft.UI.Xaml.Controls;
|
|
|
|
|
|
#else
|
2024-07-20 23:32:39 +02:00
|
|
|
|
using Microsoft.UI.Xaml.Controls;
|
2024-07-20 03:07:21 +02:00
|
|
|
|
#endif
|
|
|
|
|
|
namespace Wino.Dialogs
|
|
|
|
|
|
{
|
|
|
|
|
|
public sealed partial class AccountEditDialog : ContentDialog
|
|
|
|
|
|
{
|
|
|
|
|
|
public MailAccount Account { get; private set; }
|
|
|
|
|
|
public bool IsSaved { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public AccountEditDialog(MailAccount account)
|
|
|
|
|
|
{
|
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
|
Account = account;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void SaveClicked(ContentDialog sender, ContentDialogButtonClickEventArgs args)
|
|
|
|
|
|
{
|
|
|
|
|
|
IsSaved = true;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|