예제 #1
0
		public App ()
		{	
			Current = this;

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

			// we remember if they're logged in, and only display the login page if they're not
			if (isLoggedIn)
				MainPage = new LoginPattern.MainPage ();
			else
				MainPage = new LoginModalPage (this);
		}
예제 #2
0
        public App()
        {
            Current = this;

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

            // we remember if they're logged in, and only display the login page if they're not
            if (isLoggedIn)
            {
                MainPage = new LoginPattern.MainPage();
            }
            else
            {
                MainPage = new LoginModalPage(this);
            }
        }