Exemplo n.º 1
0
        public App()
        {
            Current = this;

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

            isLoggedIn = true;

            // we remember if they're logged in, and only display the login page if they're not
            if (isLoggedIn)
            {
                MainPage = new EZClaim.MainPage(this);
            }
            else
            {
                MainPage = new LoginModalPage(this);
            }
        }
Exemplo n.º 2
0
 public void Logout()
 {
     Properties["IsLoggedIn"] = false; // only gets set to 'true' on the LoginPage
     MainPage = new LoginModalPage(this);
 }