public async void ToMainPage(AccountDataItem account, bool existingAccount = true)
        {
            AccountsManager.SetLastLoginIdentifier(account.LocalAccountId);

            await base.FindAncestor <MainWindowViewModel>().SetCurrentAccount(account, syncAccount: true);

            if (existingAccount)
            {
                account.ExecuteOnLoginTasks();
            }

            if (DefaultAccountToDelete != null)
            {
                StartDeleteDefaultAccount();
            }
        }
Exemple #2
0
        public async void ToMainPage(AccountDataItem account, bool existingAccount = true)
        {
            AccountsManager.SetLastLoginIdentifier(account.LocalAccountId);

            // We only sync if it's an existing account. For new accounts, we already performed a sync when logging in for first time.
            await base.FindAncestor <MainWindowViewModel>().SetCurrentAccount(account, syncAccount: existingAccount);

            if (existingAccount)
            {
                account.ExecuteOnLoginTasks();
            }

            if (DefaultAccountToDelete != null)
            {
                StartDeleteDefaultAccount();
            }
        }