コード例 #1
0
 private async void LogOutExcute()
 {
     await CheckBusy(async() => {
         SqLiteService.DeleteAll <UserModel>();
         SqLiteService.DeleteAll <NotificationModel>();
         App.Settings.IsLogin = false;
         IsAdmin  = false;
         UserInfo = null;
         IsLogin  = false;
         SqLiteService.Update(App.Settings);
     });
 }
コード例 #2
0
        private async void LogoutExecute()
        {
            await CheckBusy(async() =>
            {
                SqLiteService.DeleteAll <UserModel>();

                // Navigate to Login page
                await DeviceExtension.BeginInvokeOnMainThreadAsync(async() =>
                {
                    await Navigation.NavigateAsync(new Uri($"{ManagerPage.NavigationHomeUri}/{ManagerPage.LoginPage}"));
                });
            });
        }