public CommentListPage(Post post) : this() { AddToolbarItem(post); List <Comment> comments = _dr.GetComments(post.Id); foreach (Comment c in comments) { CommentsList.Add(c); } }
private void LoadData(int?postId) { CommentsList.Clear(); List <Comment> comments = _dr.GetComments(postId); ActivityIndicator.IsRunning = false; ActivityIndicator.IsVisible = false; CommentsListView.IsVisible = true; foreach (Comment c in comments) { CommentsList.Add(c); } }
private async void LoadData(int id) { CommentsList.Clear(); List <Comment> comments = await _dr.GetComments(id); Loader.IsRunning = false; Loader.IsVisible = false; CommentsListView.IsVisible = true; foreach (Comment c in comments) { CommentsList.Add(c); } }