protected override void OnAppearing() { FoodImage.Source = _pictureManager.GetFoodImage(_food.ImagePath); LblDescribe.Text = _food.Describing; LblPrice.Text = _food.Price.ToString(); SetStarRating(_food); base.OnAppearing(); }
public FoodEdit(Food food) { InitializeComponent(); _food = food; FoodDescribe.Text = food.Describing; FoodName.Text = food.Name; FoodPrice.Text = food.Price.ToString(); FoodStarRating.Text = food.Rating + "/5"; CreateFoodImage.Source = _pictureManager.GetFoodImage(_food.ImagePath); }