Пример #1
0
        protected override void OnResume()
        {
            // Handle when your app resumes

            if (Application.Current.Properties.ContainsKey("api_key"))
            {
                FrontPageMaster fpm = new FrontPageMaster();
                fpm.Master = new FrontPageMasterMenu();
                fpm.Detail = new NavigationPage(new FrontPageDetail())
                {
                    BarBackgroundColor = Color.FromHex("#016A6F"),
                };

                MainPage = fpm;

                StartingPoint(fpm);
            }
            else
            {
                MainPage = new NavigationPage(new MainPage())
                {
                    BarBackgroundColor = Color.FromHex("#016A6F"),
                };
            }
        }
Пример #2
0
        private async Task LoginUser()
        {
            if (await CheckLoginCredentials() == true)
            {
                FrontPageMaster fpm = new FrontPageMaster();
                fpm.Master = new FrontPageMasterMenu();
                fpm.Detail = new NavigationPage(new FrontPageDetail())
                {
                    BarBackgroundColor = Color.FromHex("#016A6F"),
                };

                Application.Current.MainPage = fpm;

                StartingPoint(fpm);
            }
        }