Example #1
0
        /// <summary>
        /// Kicks off the main application flow - this is the typical route taken once a user is registered
        /// </summary>
        void StartAuthenticationFlow()
        {
            //Create our entry page and add it to a NavigationPage, then apply a randomly assigned color theme
            var page    = new AthleteLeaguesPage(Instance.CurrentAthlete);
            var navPage = new ThemedNavigationPage(page);

            page.ApplyTheme(navPage);
            MainPage = navPage;

            page.EnsureUserAuthenticated();
        }
Example #2
0
        async Task MoveToMainPage()
        {
            Settings.RegistrationComplete = true;
            var page = new AthleteLeaguesPage(App.Instance.CurrentAthlete);
            await page.LoadLeagues();

            await Task.Delay(200);

            await Navigation.PushAsync(page);

            while (Navigation.NavigationStack.Count > 0)
            {
                Navigation.RemovePage(Navigation.NavigationStack[0]);                 //WelcomeStartPage
            }
        }