protected override void OnStart() { // Handle when your app starts var current = Connectivity.NetworkAccess; if (current == NetworkAccess.Internet) { if (VerificarUsuarioLogado.Logado()) { MainPage = new View.MasterPageView(); } else { MainPage = new NavigationPage(new View.LoginView()); } } else { MainPage = new View.SemConexao(); } }
private void BtnSair_OnClicked(object sender, EventArgs args) { VerificarUsuarioLogado.Deslogar(); Detail = new NavigationPage(new LoginView()); IsPresented = false; }