Exemple #1
0
        async Task Logout()
        {
            if (!await UIFunc.ConfirmAsync("Logout?"))
            {
                return;
            }

            isLogoutClose = true;
            var ret = await NavFunc.PopToRootAsync();

            isLogoutClose = false;

            if (!ret)
            {
                return;
            }

            UserOptions.Clear();
            var model = new LoginViewModel();
            await NavFunc.NavigateToAsync(model);
        }