You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
767 B
29 lines
767 B
namespace ShoopNCook.Pages;
|
|
|
|
public partial class MorePage : ContentPage
|
|
{
|
|
public MorePage(): this("Adom Shafi", ImageSource.FromFile("default_profile_picture.png"))
|
|
{
|
|
}
|
|
|
|
public MorePage(string userName, ImageSource userImage)
|
|
{
|
|
InitializeComponent();
|
|
ProfileImage.Source = userImage;
|
|
ProfileName.Text = userName;
|
|
}
|
|
private async void OnMyRecipesButtonTapped(object sender, EventArgs e)
|
|
{
|
|
await Shell.Current.GoToAsync("//MyRecipe");
|
|
}
|
|
|
|
private async void OnEditProfileButtonTapped(object sender, EventArgs e)
|
|
{
|
|
await Shell.Current.GoToAsync("//EditProfile");
|
|
}
|
|
|
|
private async void OnLogoutButtonTapped(object sender, EventArgs e)
|
|
{
|
|
await Shell.Current.GoToAsync("//Login");
|
|
}
|
|
} |