예제 #1
0
        public App()
        {
            // The root page of your application
            // The root page of your application
            //Current = this;
           // MainPage = new Profile();
            BlobCache.ApplicationName = "CPMobile";
            MainPage = new LoginPage();
            //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 RootPage ();
            //else
            //    MainPage = new RootPage();
        }
예제 #2
0
파일: App.cs 프로젝트: segmond/CPXamarin
        public App()
        {
            // The root page of your application
            // The root page of your application
            //Current = this;
               // MainPage = new Profile();
            BlobCache.ApplicationName = "CPMobile";

            var authLoginToken = Settings.AuthLoginToken;

            if (string.IsNullOrEmpty(authLoginToken))
                MainPage = new LoginPage();
            else
                MainPage = new RootPage();
            //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 RootPage ();
            //else
            //    MainPage = new RootPage();
        }