public void OnRatingChanged(float rating) { if (RatingChanged != null) { RatingChanged.Invoke(this, rating); } }
private void StarTapped4(object sender, EventArgs e) { SetStarImage(Star1, true); SetStarImage(Star2, true); SetStarImage(Star3, true); SetStarImage(Star4, true); SetStarImage(Star5, true); RatingChanged?.Invoke(this, 5); }
void FilmFiltersSet_SelectedValueChanged(object sender, SelectedValueChangedEventArgs e) { if (e.Source == this[GENRES_FILTER_NAME]) { GenreChanged?.Invoke(this, new GenreChangedEventArgs(e)); } else if (e.Source == this[YEARS_FILTER_NAME]) { YearChanged?.Invoke(this, new YearChangedEventArgs(e)); } else if (e.Source == this[RATINGS_FILTER_NAME]) { RatingChanged?.Invoke(this, new RatingChangedEventArgs(e)); } else if (e.Source == this[SELFRATINGS_FILTER_NAME]) { SelfRatingChanged?.Invoke(this, new SelfRatingChangedEventArgs(e)); } }
protected virtual void OnRatingChanged(int rating) { RatingChanged?.Invoke(this, rating); }
private void OnRatingChanged() { RatingChanged?.Invoke(this, EventArgs.Empty); }
public void OnRatingChanged(float rating) { RatingChanged?.Invoke(this, rating); }