Canceling authentication and Outlook improvements (#367)

* Cancellation support for getting responses from the server.

* Adding cancel button for account creation dialog initialization.

* Prevent invalid outlook message types like contact, calendar event or todo item.

* Remove debug launcher options.
This commit is contained in:
Burak Kaan Köse
2024-09-13 02:51:37 +02:00
committed by GitHub
parent f85085de41
commit e93ecc7e4a
13 changed files with 112 additions and 66 deletions

View File

@@ -1,7 +1,4 @@
using Wino.Core.Domain.Enums;
using Wino.Helpers;
namespace Wino.Dialogs
namespace Wino.Dialogs
{
public sealed partial class AccountCreationDialog : BaseAccountCreationDialog
{
@@ -10,24 +7,9 @@ namespace Wino.Dialogs
InitializeComponent();
}
public override void UpdateState()
private void CancelClicked(object sender, Windows.UI.Xaml.RoutedEventArgs e)
{
switch (State)
{
case AccountCreationDialogState.SigningIn:
StatusText.Text = "Account information is being saved.";
DialogIcon.Data = XamlHelpers.GetPathIcon("SavingAccountPathIcon");
break;
case AccountCreationDialogState.PreparingFolders:
StatusText.Text = "We are getting folder information at the moment.";
DialogIcon.Data = XamlHelpers.GetPathIcon("PreparingFoldersPathIcon");
break;
case AccountCreationDialogState.Completed:
StatusText.Text = "All done.";
break;
default:
break;
}
Complete(true);
}
}
}