using Models; namespace ShoopNCook.Pages; public partial class MorePage : ContentPage { public MorePage(Account account, UserNotifier notifier) { InitializeComponent(); ProfileImage.Source = ImageSource.FromUri(account.User.ProfilePicture); ProfileName.Text = account.User.Name; } private async void OnMyRecipesButtonTapped(object sender, EventArgs e) { await Shell.Current.Navigation.PushAsync(new MyRecipesPage()); } private async void OnEditProfileButtonTapped(object sender, EventArgs e) { await Shell.Current.Navigation.PushAsync(new ProfilePage()); } private async void OnLogoutButtonTapped(object sender, EventArgs e) { await Shell.Current.GoToAsync("//Login"); } private async void OnShareButtonClicked(object sender, EventArgs e) { await Share.RequestAsync(new ShareTextRequest { Text = "Voici le texte à partager (à changer)", Title = "Partagez ce texte : (à modifier)" }); } }