private async System.Threading.Tasks.Task GotoMenu() { AreBtnsEn = false; User user = new User(Entry_Email, Entry_Password); userToken = await n_Restctrl.GetToken(user); Constants.userToken = userToken; if (userToken != null) { await Application.Current.MainPage.DisplayAlert("Login", "Login succesfull", "Ok"); Application.Current.MainPage = new NavigationPage(new MenuListsView()); } else { await Application.Current.MainPage.DisplayAlert("Login", "Login failed", "Ok"); } AreBtnsEn = true; }