示例#1
0
 public void OnRatingChanged(float rating)
 {
     if (RatingChanged != null)
     {
         RatingChanged.Invoke(this, rating);
     }
 }
示例#2
0
 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);
 }
示例#3
0
 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));
     }
 }
示例#4
0
 protected virtual void OnRatingChanged(int rating)
 {
     RatingChanged?.Invoke(this, rating);
 }
示例#5
0
 private void OnRatingChanged()
 {
     RatingChanged?.Invoke(this, EventArgs.Empty);
 }
示例#6
0
 public void OnRatingChanged(float rating)
 {
     RatingChanged?.Invoke(this, rating);
 }