예제 #1
0
        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();
            }
        }
예제 #2
0
 private void BtnSair_OnClicked(object sender, EventArgs args)
 {
     VerificarUsuarioLogado.Deslogar();
     Detail      = new NavigationPage(new LoginView());
     IsPresented = false;
 }