Ejemplo n.º 1
0
        public App()
        {
            InitializeComponent();

            Current = this;
            var isLoggedIn = Properties.ContainsKey("IsLoggedIn") ? (bool)Properties["IsLoggedIn"] : false;

            if (isLoggedIn)
            {
                MainPage = new Inicio();
            }
            else
            {
                MainPage = new LoginModalPage(this);
            }
        }
Ejemplo n.º 2
0
 public void Logout()
 {
     Properties["IsLoggedIn"] = false;
     MainPage = new LoginModalPage(this);
 }