private async void AstroTop_Clicked(object sender, EventArgs e) { if (sender.GetType() == typeof(Grid)) { string classid = string.Empty; Grid grid = sender as Grid; classid = grid.ClassId; await Navigation.PushAsync(new Horoscope(classid), true); } else { var stack = sender as StackLayout; AstrologerEntity ae = ((HomePageViewModel)BindingContext).Astrologers.FirstOrDefault(x => x.Id == Convert.ToInt64(((TappedEventArgs)e).Parameter)); await Navigation.PushAsync(new AstrologerProfile(ae), true); } }
public AstrologerProfile(AstrologerEntity astroinfo) { InitializeComponent(); Astrologer = astroinfo; }
public AstrologerReview(AstrologerEntity astro) { InitializeComponent(); Astrologer = astro; }