예제 #1
0
        private void LogoutList_OnItemTapped(object sender, ItemTappedEventArgs e)
        {
            var Item = e.Item as LogoutItems;

            if (Item.Label == AppResources.Label_Logout)
            {
                Logout().ConfigureAwait(false);

                SQL_Commander.ClearLoginCredentialsList();


                SQL_Commander.ClearProfileCredentialsList();


                SQL_Commander.ClearMessageList();


                SQL_Commander.DeletAllChatUsersList();


                SQL_Commander.ClearNotifiDBCredentialsList();


                SQL_Commander.ClearPrivacyDBCredentialsList();



                SQL_Commander.ClearChatUserTable();
                SQL_Commander.DeletAllChatUsersList();

                try

                {
                    WowonderPhone.Settings.ReLogin = true;
                    Navigation.PopAsync();
                    App.GetLoginPage();
                }
                catch
                {
                    Navigation.RemovePage(this);
                    App.GetLoginPage();
                }
            }
        }