private async void BtnExit_OnClicked(object sender, EventArgs e) { Remember.ClearEverything(); Remember.Username = null; Remember.Password = null; await App.Instance.BaseNavigation.PopToRootAsync(false); }
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 { } }