Пример #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);
         }
     }
 }
Пример #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);
     }
 }