private void updateOverallRating(object sender, EventArgs e) { DataBaseAccess database = new DataBaseAccess(); database.StartConnection(); // update the average stars int averageStars = (int)Math.Round(database.GetAverageStarRating(_userAsset.GetID())); int numberRatings = database.GetAmountOfRatingsForAsset(_userAsset.GetID()); starOverall.UpdateStarsGraphics(averageStars); lblRatingTotal.Text = numberRatings + " People Rated This Overall"; database.CloseConnection(); }