Ejemplo n.º 1
0
 private void Global_RatingUpdated(object sender, Global.RatingUpdatedEventArgs e)
 {
     if (e.Location.Equals(_location, StringComparison.OrdinalIgnoreCase))
     {
         if (_rating != e.Rating)
         {
             _rating = e.Rating;
             RatingUpdated?.Invoke(this, EventArgs.Empty);
         }
     }
 }
Ejemplo n.º 2
0
 private void Global_RatingUpdated(object sender, Global.RatingUpdatedEventArgs e)
 {
     try
     {
         if (string.Equals(e.Location, _location, StringComparison.OrdinalIgnoreCase))
         {
             _rating = e.Rating;
             _list.InvalidateItem(this);
         }
     }
     catch (Exception ex)
     {
         Log.Error(ex);
     }
 }