private void UpdateReviews(ReviewDetailsDataModel review)
        {
            var index = ReviewList.IndexOf(review);

            ReviewList.Remove(review);
            ReviewList.Insert(index, review);
            //ReviewList = ReviewList;
        }
Beispiel #2
0
 public void HideOrShowDetails(ReviewDetailsDataModel review)
 {
     if (_oldReview == review)
     {
         review.IsVisible = !review.IsVisible;
         UpdateReviews(review);
     }
     else
     {
         if (_oldReview != null)
         {
             _oldReview.IsVisible = false;
             UpdateReviews(_oldReview);
         }
         review.IsVisible = true;
         UpdateReviews(review);
     }
     _oldReview = review;
 }
Beispiel #3
0
        private void UpdateReviews(ReviewDetailsDataModel review)
        {
            try
            {
                var index = ReviewList.IndexOf(review);
                ReviewList.Remove(review);
                ReviewList.Insert(index, review);
                if (review.IsVisible)
                {
                    ShowDetailsIcon = _expandIcon;
                }
                else
                {
                    ShowDetailsIcon = _collapseIcon;
                }
            }catch (Exception e) {
            }

            //ReviewList = ReviewList;
        }