示例#1
0
		async void OnProfileSelected()
		{
			if(App.Instance.CurrentAthlete == null || App.Instance.CurrentAthlete.Id == null)
				return;

			var page = new AthleteProfilePage(App.Instance.CurrentAthlete.Id);
			page.OnSave = async () => await Navigation.PopModalAsync();
			await Navigation.PushModalAsync(page.WithinNavigationPage());
		}
        async void OnProfileSelected()
        {
            if (App.Instance.CurrentAthlete == null || App.Instance.CurrentAthlete.Id == null)
            {
                return;
            }

            var page = new AthleteProfilePage(App.Instance.CurrentAthlete.Id);

            page.OnSave = async() => await Navigation.PopModalAsync();

            var nav = new ThemedNavigationPage(page);
            await Navigation.PushModalAsync(nav);
        }