2024-08-17 03:43:37 +02:00
|
|
|
|
using System;
|
|
|
|
|
|
using Windows.UI.Xaml.Controls;
|
2024-11-10 23:28:25 +01:00
|
|
|
|
using Wino.Core.Domain.Entities.Mail;
|
2024-08-17 03:43:37 +02:00
|
|
|
|
using Wino.Core.Domain.Interfaces;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Wino.Dialogs
|
|
|
|
|
|
{
|
|
|
|
|
|
public sealed partial class CreateAccountAliasDialog : ContentDialog, ICreateAccountAliasDialog
|
|
|
|
|
|
{
|
|
|
|
|
|
public MailAccountAlias CreatedAccountAlias { get; set; }
|
|
|
|
|
|
public CreateAccountAliasDialog()
|
|
|
|
|
|
{
|
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void CreateClicked(ContentDialog sender, ContentDialogButtonClickEventArgs args)
|
|
|
|
|
|
{
|
|
|
|
|
|
CreatedAccountAlias = new MailAccountAlias
|
|
|
|
|
|
{
|
|
|
|
|
|
AliasAddress = AliasTextBox.Text.Trim(),
|
|
|
|
|
|
ReplyToAddress = ReplyToTextBox.Text.Trim(),
|
|
|
|
|
|
Id = Guid.NewGuid(),
|
|
|
|
|
|
IsPrimary = false,
|
|
|
|
|
|
IsVerified = false
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
Hide();
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|