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(); }
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(); }