double GetIncrement(RatingPrecision precision) { switch (precision) { case RatingPrecision.Half: return(0.5d); case RatingPrecision.Exact: return(0.1d); default: return(1.0d); } }
private void SetRatingsPrecision(RatingPrecision precisionType) { if (this.horizontalRating != null) this.horizontalRating.Precision = precisionType; if (this.verticalRating != null) this.verticalRating.Precision = precisionType; if (this.contentRating != null) this.contentRating.Precision = precisionType; }