示例#1
0
        private async void DownloadRestaurantComments()
        {
            var response = await RestClient.GetResponseStringFromUrl(ConnectionContext.RestaurantCommentsUrl.Replace("restaurantPk", "" + _restaurant.Pk).Replace("pageToDownload", "" + _commentList.CurrentPage));

            _commentList.loadMoreComments(response);

            if (_commentList.CommentCollection.Count == 0)
            {
                this.NoCommentText.Visibility = Visibility.Visible;
            }
            else
            {
                this.NoCommentText.Visibility = Visibility.Collapsed;
            }

            RestaurantCommentList.DataContext = _commentList;
        }