Ejemplo n.º 1
0
        private void OnNextPage(object sender, EventArgs e)
        {
            var context       = (FindTourViewModel)BindingContext;
            var findTourPage3 = new FindTourPage3()
            {
                BindingContext = context
            };

            Navigation.PushAsync(findTourPage3);
        }
Ejemplo n.º 2
0
        private void OnNextPage(object sender, EventArgs e)
        {
            var context = (FindTourViewModel)BindingContext;

            if (context.TourAims.Any(tourAim => tourAim.Name == "Підлікуватися" && tourAim.IsChecked))
            {
                // go to 2 page
                var findTourPage2 = new FindTourPage2()
                {
                    BindingContext = context
                };
                Navigation.PushAsync(findTourPage2);
            }
            else
            {
                // go to 3 page
                var findTourPage3 = new FindTourPage3()
                {
                    BindingContext = context
                };
                Navigation.PushAsync(findTourPage3);
            }
        }