Ejemplo n.º 1
0
 private async void BtnExit_OnClicked(object sender, EventArgs e)
 {
     Remember.ClearEverything();
     Remember.Username = null;
     Remember.Password = null;
     await App.Instance.BaseNavigation.PopToRootAsync(false);
 }
Ejemplo n.º 2
0
        private async void logoff_Clicked(object sender, EventArgs e)
        {
            bool result = await DisplayAlert("Message", "Do You want to logout", "ok", "Cancel");

            if (result == true)
            {
                Remember.ClearEverything();
                Application.Current.MainPage = new NavigationPage(new MainPage());
                Application.Current.Properties["IsLoggedIn"] = false;
            }
            else
            {
            }
        }