Ejemplo n.º 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();
            var navPage = new ThemedNavigationPage(page);

            page.ApplyTheme(navPage);

            MainPage = navPage;
        }
Ejemplo n.º 2
0
        async void MoveToMainPage()
        {
            Settings.Instance.RegistrationComplete = true;
            await Settings.Instance.Save();

            var page = new AthleteLeaguesPage(App.CurrentAthlete.Id);

            await Task.Delay(200);

            await Navigation.PushAsync(page);

            while (Navigation.NavigationStack.Count > 0)
            {
                Navigation.RemovePage(Navigation.NavigationStack[0]);                 //WelcomeStartPage
            }
        }
Ejemplo n.º 3
0
        async void MoveToMainPage()
        {
            Settings.Instance.RegistrationComplete = true;
            await Settings.Instance.Save();

            var page = new AthleteLeaguesPage(App.CurrentAthlete.Id);

            page.OnUserAuthenticated();

            await Task.Delay(1000);

            await Navigation.PushAsync(page);

            Navigation.RemovePage(Navigation.NavigationStack[0]);             //WelcomeStartPage
            Navigation.RemovePage(Navigation.NavigationStack[0]);             //SetAliasPage
            Navigation.RemovePage(Navigation.NavigationStack[0]);             //EnablePushPage
        }
Ejemplo n.º 4
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(App.CurrentAthlete?.Id);
			var navPage = new ThemedNavigationPage(page);
			page.ApplyTheme(navPage);
			MainPage = navPage;

			page.EnsureUserAuthenticated();
		}