Fix: étoile dans le details
continuous-integration/drone/push Build was killed Details

Popup_qui_marche_pas
Jade VAN BRABANDT 2 years ago
parent 89ff5b3e5b
commit 23382b0331

@ -144,7 +144,8 @@ namespace Model
{
sum += review.Rate;
}
return (float)(Math.Round((sum / Reviews.Count) * 2, MidpointRounding.AwayFromZero) / 2);
Average= (float)(Math.Round((sum / Reviews.Count) * 2, MidpointRounding.AwayFromZero) / 2);
return Average;
}
public void AddReview(Review review)

@ -11,8 +11,8 @@ public partial class DetailledPage : ContentPage
InitializeComponent();
BindingContext = game;
CurrGame= game;
avgLabel.Text = game.Average.ToString();
AddStars(starsContainer, game.Average);
avgLabel.Text = game.GetAvgRate().ToString();
AddStars(starsContainer, game.GetAvgRate());
}
private void AddStars(object sender, EventArgs e)

Loading…
Cancel
Save