Beispiel #1
0
        public App()
        {
            Utils.CheckCrash();
            Page p;

            if (!string.IsNullOrEmpty(GlobalStorage.Settings.MuaId))
            {
                p = new Pages.Mua.MuaHomePage();
            }
            else //(!string.IsNullOrEmpty(GlobalStorage.Settings.CustomerId))
            {
                p = new HomePage();
            }
            MainPage = new NavigationPage(p);
            MainPage.Navigation.PushAsync(new Splash2Page());
            Geolocator.Instance.GetPosition();
        }
Beispiel #2
0
        public App()
        {
            Utils.CheckCrash();
            Page p;

            if (!string.IsNullOrEmpty(GlobalStorage.Settings.MuaId))
            {
                p = new Pages.Mua.MuaHomePage();
            }
            else if (!string.IsNullOrEmpty(GlobalStorage.Settings.CustomerId))
            {
                p = new HomePage();
            }
            else
            {
                p = new LaunchPage();
            }
            MainPage = new NavigationPage(p);
        }